Skip to content

Commit 02d2e59

Browse files
committed
chore: Clippy
Update wasm-bindgen-test to fix lints about a nonstandard cfg flag. Add #[allow(dead_code)] to a wasm-bindgen export which is incorrectly flagged as dead: rustwasm/wasm-bindgen#2726
1 parent d433006 commit 02d2e59

File tree

4 files changed

+36
-32
lines changed

4 files changed

+36
-32
lines changed

Cargo.lock

Lines changed: 32 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ wasm-bindgen-futures = "0.4.43"
2525
gloo-timers = { version = "0.3.0", features = ["futures"] }
2626

2727
[dev-dependencies]
28-
wasm-bindgen-test = "0.3.43"
28+
wasm-bindgen-test = "0.3.50"

src/jet.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ mod tests {
9696
use super::*;
9797

9898
#[wasm_bindgen_test::wasm_bindgen_test]
99+
#[allow(dead_code)]
99100
fn wasm_sanity_checks() {
100101
assert!(simplicity::ffi::c_jets::sanity_checks());
101102
}

src/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl<'a, M: node::Marker> From<&'a node::Node<M>> for DisplayInner<'a, M> {
123123
}
124124
}
125125

126-
impl<'a, M: node::Marker> fmt::Display for DisplayInner<'a, M> {
126+
impl<M: node::Marker> fmt::Display for DisplayInner<'_, M> {
127127
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
128128
match self.0.inner() {
129129
Inner::Iden => f.write_str("iden"),
@@ -146,7 +146,7 @@ impl<'a, M: node::Marker> fmt::Display for DisplayInner<'a, M> {
146146
}
147147
}
148148

149-
impl<'a, M: node::Marker> fmt::Debug for DisplayInner<'a, M> {
149+
impl<M: node::Marker> fmt::Debug for DisplayInner<'_, M> {
150150
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
151151
fmt::Display::fmt(self, f)
152152
}

0 commit comments

Comments
 (0)