Skip to content

Commit b5f68ba

Browse files
committed
Fix some clippy warnings.
1 parent 53b4154 commit b5f68ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cap-primitives/src/windows/fs/dir_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub(crate) fn open_ambient_dir_impl(path: &Path, _: AmbientAuthority) -> io::Res
100100
.read(true)
101101
.custom_flags(FILE_FLAG_BACKUP_SEMANTICS)
102102
.share_mode(FILE_SHARE_READ | FILE_SHARE_WRITE)
103-
.open(&path)?;
103+
.open(path)?;
104104

105105
// Require a directory. It may seem possible to eliminate this `metadata()`
106106
// call by appending a slash to the path before opening it so that the OS

cap-primitives/src/windows/fs/open_unchecked.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub(crate) fn open_unchecked(
3535
let manually_trunc = prepare_open_options_for_open(&mut prepared_opts);
3636

3737
handle_open_result(
38-
open_at(&start, path, &prepared_opts),
38+
open_at(start, path, &prepared_opts),
3939
options,
4040
manually_trunc,
4141
)
@@ -143,7 +143,7 @@ pub(crate) fn open_ambient_impl(
143143
) -> Result<fs::File, OpenUncheckedError> {
144144
let _ = ambient_authority;
145145
let (std_opts, manually_trunc) = open_options_to_std(options);
146-
handle_open_result(std_opts.open(path), &options, manually_trunc)
146+
handle_open_result(std_opts.open(path), options, manually_trunc)
147147
}
148148

149149
fn handle_open_result(

0 commit comments

Comments
 (0)