Skip to content

Commit 3a16a4f

Browse files
committed
Remove type annotation for pivot variable
1 parent f780c5e commit 3a16a4f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
3.98 MB
Binary file not shown.

contents/graham_scan/code/rust/graham_scan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn graham_scan(mut points: Vec<Point>) -> Vec<Point> {
1919
sort_based_on_lowest_coordinate(&mut points);
2020

2121
// Take ownership of the pivot point
22-
let pivot: Point = points.remove(0);
22+
let pivot = points.remove(0);
2323

2424
// Sort all points based on the angle between the pivot point and itself
2525
&mut points

0 commit comments

Comments
 (0)