From d0cf01cf10a03c9f0c7e735e711db26be33abf82 Mon Sep 17 00:00:00 2001 From: Marijn Schouten Date: Sat, 8 Feb 2025 15:25:19 +0100 Subject: [PATCH] Remove empty format precision specifier A format precision specifier consisting of a dot and no number actually does nothing and has no specified meaning. Currently this is silently ignored, but it may turn into a warning or error. See rust-lang/rust#131159 and rust-lang/rust#136638 --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4026f7a..aa226f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,10 +59,10 @@ fn main() { println!("Sun altitude = {:.3} °", sun_max_altitude); // expected 46.892 deg println!("Atmospheric refraction = {:.3} °", atmosfer_refract); // expected 0.015 deg println!("Refraction corrected elevation = {:.3} °", correct_height); // expected 46.91 deg - println!("Day length = {:.?}", daylen); - println!("Sunrise time = {:.?} ", rise_time); - println!("Noon time = {:.?}", noon_time); - println!("Sunset time = {:.?}", set_time); + println!("Day length = {:?}", daylen); + println!("Sunrise time = {:?} ", rise_time); + println!("Noon time = {:?}", noon_time); + println!("Sunset time = {:?}", set_time); } // End of main fn get_hrmn(dayfract: f64) -> NaiveTime {