Fix clippy warnings

This commit is contained in:
Johannes Altmanninger 2024-01-20 10:26:02 +01:00
parent 2059e5a171
commit c52c03b03c
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ fn detect_cfgs(target: &mut Target) {
Ok(target.r#if("WEXITSTATUS(0x007f) == 0x7f", "sys/wait.h")) Ok(target.r#if("WEXITSTATUS(0x007f) == 0x7f", "sys/wait.h"))
}), }),
] { ] {
match handler(&target) { match handler(target) {
Err(e) => rsconf::warn!("{}: {}", name, e), Err(e) => rsconf::warn!("{}: {}", name, e),
Ok(true) => rsconf::enable_cfg(name), Ok(true) => rsconf::enable_cfg(name),
Ok(false) => (), Ok(false) => (),

View file

@ -2799,7 +2799,7 @@ impl ReaderData {
replacement.extend(chr.to_lowercase()); replacement.extend(chr.to_lowercase());
}; };
capitalized_first = capitalized_first || make_uppercase; capitalized_first = capitalized_first || make_uppercase;
pos = pos + 1; pos += 1;
} }
self.replace_substring(elt, init_pos..pos, replacement); self.replace_substring(elt, init_pos..pos, replacement);
self.update_buff_pos(elt, None); self.update_buff_pos(elt, None);