Skip to content

Commit 3037ec4

Browse files
committed
fix clippy warnings, run testrunnre with debug-assertions
1 parent 7c4ae07 commit 3037ec4

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,8 @@ lto = "fat"
3737
codegen-units = 1
3838
debug = true
3939

40+
[profile.release.package.testrunner]
41+
debug-assertions = true
42+
4043
[profile.dev]
4144
debug = true

crates/dash_middle/src/unsaferefcell.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ impl<T> Deref for UnsafeRef<'_, T> {
6666
type Target = T;
6767
#[inline]
6868
fn deref(&self) -> &Self::Target {
69+
#[cfg_attr(not(debug_assertions), expect(noop_method_call))]
6970
self.0.deref()
7071
}
7172
}

0 commit comments

Comments
 (0)