diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-02-24 21:10:12 -0500 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-02-24 21:10:12 -0500 |
commit | 34b84d6b04b306089fc2be24c5daa6e0ad682856 (patch) | |
tree | 1215262a17187a409c077f6cc3325d69f307ef71 /src/utils | |
parent | 2bddfa209a69794ca8e04515a207f628036541e2 (diff) |
Add explicit lifetime parameters as per 2018 idioms.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/error.rs b/src/utils/error.rs index badaaeba..8210dbb9 100644 --- a/src/utils/error.rs +++ b/src/utils/error.rs @@ -23,7 +23,7 @@ pub enum BottomError { } impl std::fmt::Display for BottomError { - fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match *self { BottomError::InvalidIO(ref message) => { write!(f, "Encountered an IO exception: {}", message) |