Skip to content

Commit f66f836

Browse files
authored
chore: suppress new clippy warnings (#845)
1 parent dadb978 commit f66f836

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Cargo.toml

+6
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ unnested_or_patterns = { level = "allow", priority = 1 }
7676
unreadable_literal = { level = "allow", priority = 1 }
7777
unused_self = { level = "allow", priority = 1 }
7878
used_underscore_binding = { level = "allow", priority = 1 }
79+
ref_option = { level = "allow", priority = 1 }
7980
# restriction-lints:
8081
absolute_paths = { level = "allow", priority = 1 }
8182
arithmetic_side_effects = { level = "allow", priority = 1 }
@@ -148,6 +149,8 @@ allow_attributes_without_reason = { level = "allow", priority = 1 }
148149
allow_attributes = { level = "allow", priority = 1 }
149150
cfg_not_test = { level = "allow", priority = 1 }
150151
field_scoped_visibility_modifiers = { level = "allow", priority = 1 }
152+
unused_trait_names = { level = "allow", priority = 1 }
153+
used_underscore_items = { level = "allow", priority = 1 }
151154
# nursery-lints:
152155
branches_sharing_code = { level = "allow", priority = 1 }
153156
cognitive_complexity = { level = "allow", priority = 1 }
@@ -169,3 +172,6 @@ too_long_first_doc_paragraph = { level = "allow", priority = 1 }
169172
cargo_common_metadata = { level = "allow", priority = 1 }
170173
# style-lints:
171174
doc_lazy_continuation = { level = "allow", priority = 1 }
175+
needless_return = { level = "allow", priority = 1 }
176+
# complexity-lints
177+
needless_lifetimes = { level = "allow", priority = 1 }

src/data_structures/veb_tree.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ pub struct VebTreeIter<'a> {
215215
}
216216

217217
impl<'a> VebTreeIter<'a> {
218-
pub fn new(tree: &'a VebTree) -> VebTreeIter {
218+
pub fn new(tree: &'a VebTree) -> VebTreeIter<'a> {
219219
let curr = if tree.empty() { None } else { Some(tree.min) };
220220
VebTreeIter { tree, curr }
221221
}

0 commit comments

Comments
 (0)