File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments