Skip to content

Commit 296e610

Browse files
authored
style: include unneeded_field_pattern (TheAlgorithms#796)
1 parent 5d19e50 commit 296e610

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ string_add = { level = "allow", priority = 1 }
137137
string_slice = { level = "allow", priority = 1 }
138138
undocumented_unsafe_blocks = { level = "allow", priority = 1 }
139139
unnecessary_safety_comment = { level = "allow", priority = 1 }
140-
unneeded_field_pattern = { level = "allow", priority = 1 }
141140
unreachable = { level = "allow", priority = 1 }
142141
unseparated_literal_suffix = { level = "allow", priority = 1 }
143142
unwrap_in_result = { level = "allow", priority = 1 }

src/graph/astar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ pub fn astar<V: Ord + Copy, E: Ord + Copy + Add<Output = E> + Zero>(
5050
state: start,
5151
});
5252
while let Some(Candidate {
53-
estimated_weight: _,
5453
real_weight,
5554
state: current,
55+
..
5656
}) = queue.pop()
5757
{
5858
if current == target {

0 commit comments

Comments
 (0)