Skip to content

Commit

Permalink
Merge pull request #36 from tgecho/lint
Browse files Browse the repository at this point in the history
Clean up some clippy lints
  • Loading branch information
tgecho authored Dec 1, 2024
2 parents 67c7072 + ec77768 commit d14d5f8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ resolver = "2"
# This doesn't work on windows. Not sure if we still need it in macOS or can make it conditional.
# [profile.dev]
# split-debuginfo = "unpacked"

[workspace.lints.clippy]
pedantic = { level = "warn", priority = -1 }

cast-sign-loss = "allow"
many-single-char-names = "allow"
3 changes: 3 additions & 0 deletions canrun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ criterion = "0.5.1"
[[bench]]
name = "main"
harness = false

[lints]
workspace = true
1 change: 1 addition & 0 deletions canrun/benches/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ macro_rules! goal_bench {
}
}

#[allow(clippy::too_many_lines)]
pub fn benches(c: &mut Criterion) {
goal_bench! {c "one" (x) {
unify(x, 1)
Expand Down
1 change: 0 additions & 1 deletion canrun/src/collections/lvec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ impl<T: Unify> LVec<T> {
}

/// Returns true if the [`LVec`] contains no elements.
pub fn is_empty(&self) -> bool {
self.vec.is_empty()
}
Expand Down

0 comments on commit d14d5f8

Please sign in to comment.