Skip to content

Commit

Permalink
Oops, PopGuard::pop was supposed to move
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX committed Jan 14, 2024
1 parent e80f02c commit a8a6b0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn create_files_and_dirs(
#[cfg_attr(feature = "tracing", tracing::instrument(level = "trace"))]
fn create_dirs(num_dirs: usize, dir: &mut FastPathBuf) -> Result<(), io::Error> {
for i in 0..num_dirs {
let mut dir = with_dir_name(i, |s| dir.push(s));
let dir = with_dir_name(i, |s| dir.push(s));

create_dir_all(&dir)
.attach_printable_lazy(|| format!("Failed to create directory {dir:?}"))?;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/fast_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl<'a> PopGuard<'a> {
Self(path)
}

pub fn pop(&mut self) {
pub fn pop(self) {
unsafe { self.0.pop() }
}
}
Expand Down

0 comments on commit a8a6b0d

Please sign in to comment.