Skip to content

Commit de98195

Browse files
authored
Extensions - Small clippy cleanup (#11012)
1 parent afc5a3a commit de98195

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extension/src/artillery/simulate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub fn shot(
1313
temperature: Temperature,
1414
air_density: f64,
1515
) -> (f64, f64, f64) {
16-
let k_coefficient = -1.0 * air_density * air_friction;
16+
let k_coefficient = -air_density * air_friction;
1717
let powder_effects = if air_friction == 0.0 {
1818
1.0
1919
} else {

extension/src/clipboard.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ pub fn loadout() -> Option<String> {
4141
let mut clipboard = match Clipboard::new().map_err(|e| e.to_string()) {
4242
Ok(clipboard) => clipboard,
4343
Err(e) => {
44-
eprintln!("Clipboard error: {}", e);
44+
eprintln!("Clipboard error: {e}");
4545
return None;
4646
}
4747
};
4848
let content = clipboard.get_text().ok()?;
4949
match Loadout::from_arma(content.clone()) {
5050
Ok(_) => return Some(content),
51-
Err(e) => eprintln!("Loadout parsing error: {}", e),
51+
Err(e) => eprintln!("Loadout parsing error: {e}"),
5252
}
5353
None
5454
}

0 commit comments

Comments
 (0)