From 04b0aea2070150983cfa1345eff4057537fe8e5c Mon Sep 17 00:00:00 2001 From: Veetaha Date: Wed, 13 Aug 2025 12:16:38 +0000 Subject: [PATCH 1/2] Fix MSRV tests --- scripts/test-msrv.sh | 1 + 1 file changed, 1 insertion(+) 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" From f5f49e00de3a0adafc375d4822e97e4fe0fd8395 Mon Sep 17 00:00:00 2001 From: Veetaha Date: Wed, 13 Aug 2025 12:38:20 +0000 Subject: [PATCH 2/2] Fix lints from nightly --- bon/tests/integration/builder/attr_bon.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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();