From 10399c2238d598045af26e05336c5ecba8118bb1 Mon Sep 17 00:00:00 2001 From: Thomas Veness Date: Thu, 4 Jul 2024 10:25:44 -0400 Subject: [PATCH] Un-solve clippy1.rs --- exercises/22_clippy/clippy1.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/exercises/22_clippy/clippy1.rs b/exercises/22_clippy/clippy1.rs index b9d1ec17..9a504c90 100644 --- a/exercises/22_clippy/clippy1.rs +++ b/exercises/22_clippy/clippy1.rs @@ -4,11 +4,9 @@ // For these exercises, the code will fail to compile when there are Clippy // warnings. Check Clippy's suggestions from the output to solve the exercise. -use std::f32::consts::PI; - fn main() { // Use the more accurate `PI` constant. - let pi = PI; + let pi = 3.141592; let radius: f32 = 5.0; let area = pi * radius.powi(2);