File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ All notable changes to insta and cargo-insta are documented here.
44
55## 1.30.0
66
7- - Write inline snapshots with atomic rename to avoid some rare races. (#373 )
8- - Pass ` --color=... ` to libtest to propagate color choices in more situations. (#375 )
7+ - Mark settings drop guard as ` #[must_use] ` .
8+ - Write inline snapshots with atomic rename to avoid some rare races. (#373 )
9+ - Pass ` --color=... ` to libtest to propagate color choices in more situations. (#375 )
910
1011## 1.29.0
1112
Original file line number Diff line number Diff line change @@ -580,6 +580,7 @@ impl Settings {
580580}
581581
582582/// Returned from [`bind_to_scope`](Settings::bind_to_scope)
583+ #[ must_use = "The guard is immediately dropped so binding has no effect. Use `let _guard = ...` to bind it." ]
583584pub struct SettingsBindDropGuard ( Option < Arc < ActualSettings > > ) ;
584585
585586impl Drop for SettingsBindDropGuard {
You can’t perform that action at this time.
0 commit comments