diff --git a/bon/tests/integration/builder/attr_bon.rs b/bon/tests/integration/builder/attr_bon.rs index 46a88115..18045e5d 100644 --- a/bon/tests/integration/builder/attr_bon.rs +++ b/bon/tests/integration/builder/attr_bon.rs @@ -81,7 +81,7 @@ fn receiver_variations() { fn mut_self_ref_self(#[allow(clippy::needless_arbitrary_self_type)] mut self: &Self) { #[allow(clippy::self_assignment, unused_assignments)] { - self = self; + self = &Self { field: 43 }; } } @@ -89,7 +89,8 @@ fn receiver_variations() { fn mut_self_as_ref_mut_self( #[allow(clippy::needless_arbitrary_self_type)] mut self: &mut Self, ) { - #[allow(clippy::self_assignment, unused_assignments)] + self.field = 45; + #[allow(clippy::self_assignment, unused_assignments, dead_code)] { self = self; } @@ -126,7 +127,7 @@ fn receiver_variations() { Sut::mut_self_as_ref_mut_self(&mut sut).call(); sut.mut_self_as_ref_mut_self().call(); - assert_eq!(sut.field, 44); + assert_eq!(sut.field, 45); Sut::self_as_pin_mut_self(Pin::new(&mut sut)).call(); Pin::new(&mut sut).self_as_pin_mut_self().call(); diff --git a/scripts/test-msrv.sh b/scripts/test-msrv.sh index 0c4f18a1..09aee94e 100755 --- a/scripts/test-msrv.sh +++ b/scripts/test-msrv.sh @@ -43,6 +43,7 @@ step cargo update -p tokio --precise 1.29.1 step cargo update -p expect-test --precise 1.4.1 step cargo update -p windows-sys --precise 0.52.0 step cargo update -p libc --precise 0.2.163 +step cargo update -p glob --precise 0.3.2 export RUSTFLAGS="${RUSTFLAGS:-} --allow unknown-lints"