Skip to content

Commit 0b220f9

Browse files
committed
Fix clippy1
1 parent d3cdeed commit 0b220f9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

exercises/22_clippy/clippy1.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
// For these exercises, the code will fail to compile when there are Clippy
55
// warnings. Check Clippy's suggestions from the output to solve the exercise.
66

7-
use std::f32::consts::PI;
8-
97
fn main() {
10-
// Use the more accurate `PI` constant.
11-
let pi = PI;
8+
// TODO: Fix the Clippy lint in this line.
9+
let pi = 3.14;
1210
let radius: f32 = 5.0;
1311

1412
let area = pi * radius.powi(2);

0 commit comments

Comments
 (0)