mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-03 09:23:00 +00:00
convert to rust edition 2018
This commit is contained in:
1 parent
a6f61a6bda
commit
2d0b0488f2
21 files changed
+72
-93
No files matched your search
@@ -1,7 +1,8 @@
|
||||
/// This module contains common internal types.
|
||||
use serde::*;
|
||||
use std::fmt;
|
||||
|
||||
use hyperfine::units::{Second, Unit};
|
||||
use crate::hyperfine::units::{Second, Unit};
|
||||
|
||||
#[cfg(not(windows))]
|
||||
pub const DEFAULT_SHELL: &str = "sh";
|
||||
@@ -50,7 +51,7 @@ impl<'a> Command<'a> {
|
||||
}
|
||||
|
||||
impl<'a> fmt::Display for Command<'a> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(f, "{}", self.get_shell_command())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user