-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: fix some compiler warnings #3262
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,6 +145,8 @@ static REMOVE_FIELD: LazyLock<StructField> = LazyLock::new(|| { | |
true, | ||
) | ||
}); | ||
// TODO implement support for this checkpoint | ||
#[expect(dead_code)] | ||
static REMOVE_FIELD_CHECKPOINT: LazyLock<StructField> = LazyLock::new(|| { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we want to keep this around for now There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The compiler says it is unused. I can fix the compiler warning by adding an Can you give me some hint about why we are keeping it around so I can add a comment for the next person? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is part of the checkpoint we still need to support at some point |
||
StructField::new( | ||
"remove", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,7 @@ where | |
} | ||
|
||
// Custom deserialization that parses a JSON string into MetricDetails | ||
#[expect(dead_code)] | ||
fn deserialize_vec_string<'de, D>(deserializer: D) -> Result<Vec<String>, D::Error> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here as well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The compiler says it is unused (and the function isn't pub so it can't be called outside this module). I will put it back with an Any chance you can give me the rationale to add to the comments for future readers? |
||
where | ||
D: Deserializer<'de>, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,14 +121,11 @@ mod tests { | |
use maplit::hashmap; | ||
use serial_test::serial; | ||
|
||
struct ScopedEnv { | ||
vars: HashMap<std::ffi::OsString, std::ffi::OsString>, | ||
} | ||
struct ScopedEnv {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the compiler claimed this field was never read -- if the CI passes we could remove the entire structure I think (but I wanted to make the diff smaller to see initially) |
||
|
||
impl ScopedEnv { | ||
pub fn new() -> Self { | ||
let vars = std::env::vars_os().collect(); | ||
Self { vars } | ||
Self {} | ||
} | ||
|
||
pub fn run<T>(mut f: impl FnMut() -> T) -> T { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is only used in tests it seems