We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3950319 commit 272e743Copy full SHA for 272e743
src/nixos.rs
@@ -181,10 +181,8 @@ impl OsRebuildArgs {
181
debug!("Target profile path: {}", target_profile.display());
182
debug!("Target profile exists: {}", target_profile.exists());
183
184
- // Take a strong reference to out_path to prevent premature dropping
185
- // This prevents the tempdir from being dropped early, which would cause nvd diff to fail
186
- #[allow(unused_variables)]
187
- let keep_alive = out_path.get_path().to_owned();
+ // Note: out_path itself is kept alive until the end of this function,
+ // which prevents the tempdir (if any) from being dropped early
188
189
if !target_profile
190
.try_exists()
0 commit comments