convert to rust edition 2018

This commit is contained in:
Andrii Radyk authored and David Peter committed 2019-05-08 08:10:02 -05:00
1 parent a6f61a6bda
commit 2d0b0488f2
21 files changed
+72 -93

No files matched your search

+3 -2
View File
@@ -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())
}
}