Skip to content

Commit c7b2e1a

Browse files
committed
chore: simplify reborrow
1 parent 8afa07a commit c7b2e1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn create_helper<R>(
2828
) -> io::Result<R> {
2929
// Make the path absolute. Otherwise, changing the current directory can invalidate a stored
3030
// path (causing issues when cleaning up temporary files.
31-
let mut base = &*base; // re-borrow to shrink lifetime
31+
let mut base = base; // re-borrow to shrink lifetime
3232
let base_path_storage; // slot to store the absolute path, if necessary.
3333
if !base.is_absolute() {
3434
let cur_dir = std::env::current_dir()?;

0 commit comments

Comments
 (0)