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 2484ac8 commit 6b53393Copy full SHA for 6b53393
examples/tftpd-targz.rs
@@ -49,7 +49,7 @@ impl Handler for TftpdTarGzHandler {
49
while let Some(Ok(entry)) = entries.next().await {
50
if entry
51
.path()
52
- .map(|p| strip_path_prefixes(&*p) == req_path)
+ .map(|p| strip_path_prefixes(&p) == req_path)
53
.unwrap_or(false)
54
{
55
// We manage to find the entry.
src/server/handlers/dir.rs
@@ -137,7 +137,7 @@ fn secure_path(
137
}
138
139
fn open_file_ro(path: PathBuf) -> io::Result<(File, Option<u64>)> {
140
- let file = File::open(&path)?;
+ let file = File::open(path)?;
141
let len = file.metadata().ok().map(|m| m.len());
142
Ok((file, len))
143
0 commit comments