workspace: zero compiler warnings across all targets
254 warnings (320 counting replayed-cache re-emitters) cleaned: unused mut/imports/variables, irrefutable if-lets and unreachable patterns, dead code removed or annotated #[allow(dead_code)] with the reason (C++ parity value sets, cfg(test) helpers, public API reservations), drop(&ref) no-ops removed, fn-pointer identity via std::ptr::fn_addr_eq, the test-stubs feature declared in oak-node's manifest, missing docs filled. Every unused-Result site was judged individually: meaningful errors propagate, intentional ignores are let _ = with a note. Two pre-existing latent bugs are documented in place, behavior preserved: app.rs's timeline-tool observer and dialogs.rs's format subscription both drop the returned Subscription immediately, so they never fire.
This commit is contained in:
@@ -456,7 +456,7 @@ mod tests {
|
||||
fn option_setting_roundtrip() {
|
||||
let mut p = CommandLineParser::new();
|
||||
p.add_option(&[cstr("o")], "", true, "F", false).unwrap();
|
||||
let mut opt = p.option_mut(0).unwrap();
|
||||
let opt = p.option_mut(0).unwrap();
|
||||
assert_eq!(opt.get_setting().unwrap(), "");
|
||||
opt.set_setting("value").unwrap();
|
||||
assert_eq!(opt.get_setting().unwrap(), "value");
|
||||
@@ -467,7 +467,7 @@ mod tests {
|
||||
fn positional_setting_roundtrip() {
|
||||
let mut p = CommandLineParser::new();
|
||||
p.add_positional_argument("in", "", true).unwrap();
|
||||
let mut pos = p.positional_mut(0).unwrap();
|
||||
let pos = p.positional_mut(0).unwrap();
|
||||
assert_eq!(pos.get_setting().unwrap(), "");
|
||||
pos.set_setting("file.mp4").unwrap();
|
||||
assert_eq!(pos.get_setting().unwrap(), "file.mp4");
|
||||
@@ -786,7 +786,7 @@ Usage: oak [options] [input]
|
||||
let mut p = CommandLineParser::new();
|
||||
p.add_option(&[cstr("o")], "", true, "F", false).unwrap();
|
||||
{
|
||||
let mut opt = p.option_mut(0).unwrap();
|
||||
let opt = p.option_mut(0).unwrap();
|
||||
opt.set_setting("v").unwrap();
|
||||
}
|
||||
let opt = p.option(0).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user