Skip to content

Commit

Permalink
chore: suppress new clippy warnings (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 authored Dec 5, 2024
1 parent dadb978 commit f66f836
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ unnested_or_patterns = { level = "allow", priority = 1 }
unreadable_literal = { level = "allow", priority = 1 }
unused_self = { level = "allow", priority = 1 }
used_underscore_binding = { level = "allow", priority = 1 }
ref_option = { level = "allow", priority = 1 }
# restriction-lints:
absolute_paths = { level = "allow", priority = 1 }
arithmetic_side_effects = { level = "allow", priority = 1 }
Expand Down Expand Up @@ -148,6 +149,8 @@ allow_attributes_without_reason = { level = "allow", priority = 1 }
allow_attributes = { level = "allow", priority = 1 }
cfg_not_test = { level = "allow", priority = 1 }
field_scoped_visibility_modifiers = { level = "allow", priority = 1 }
unused_trait_names = { level = "allow", priority = 1 }
used_underscore_items = { level = "allow", priority = 1 }
# nursery-lints:
branches_sharing_code = { level = "allow", priority = 1 }
cognitive_complexity = { level = "allow", priority = 1 }
Expand All @@ -169,3 +172,6 @@ too_long_first_doc_paragraph = { level = "allow", priority = 1 }
cargo_common_metadata = { level = "allow", priority = 1 }
# style-lints:
doc_lazy_continuation = { level = "allow", priority = 1 }
needless_return = { level = "allow", priority = 1 }
# complexity-lints
needless_lifetimes = { level = "allow", priority = 1 }
2 changes: 1 addition & 1 deletion src/data_structures/veb_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ pub struct VebTreeIter<'a> {
}

impl<'a> VebTreeIter<'a> {
pub fn new(tree: &'a VebTree) -> VebTreeIter {
pub fn new(tree: &'a VebTree) -> VebTreeIter<'a> {
let curr = if tree.empty() { None } else { Some(tree.min) };
VebTreeIter { tree, curr }
}
Expand Down

0 comments on commit f66f836

Please sign in to comment.