mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 17:00:18 +00:00
Fix clippy suggestions
This commit is contained in:
1 parent
b38bfc894c
commit
c44aa1d006
3 files changed
+13
-13
No files matched your search
+2
-2
@@ -131,7 +131,7 @@ impl CommandInputPolicy {
|
||||
CommandInputPolicy::Null => Stdio::null(),
|
||||
|
||||
CommandInputPolicy::File(path) => {
|
||||
let file: File = File::open(&path)?;
|
||||
let file: File = File::open(path)?;
|
||||
Stdio::from(file)
|
||||
}
|
||||
};
|
||||
@@ -171,7 +171,7 @@ impl CommandOutputPolicy {
|
||||
CommandOutputPolicy::Pipe => (Stdio::piped(), Stdio::null()),
|
||||
|
||||
CommandOutputPolicy::File(path) => {
|
||||
let file = File::create(&path)?;
|
||||
let file = File::create(path)?;
|
||||
(file.into(), Stdio::null())
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user