From 7d261e8a4674f13d8c8c06da1583a941d0553efe Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Mon, 2 Nov 2020 19:19:51 -0500 Subject: [PATCH] Remove trailing semicolon from internal `err!` macro This will allow this crate to continue to compile if https://github.com/rust-lang/rust/issues/33953 is fixed --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index a31e63bce2..1c6001ddbf 100644 --- a/src/util.rs +++ b/src/util.rs @@ -204,7 +204,7 @@ pub fn c_cmp_to_ordering(cmp: c_int) -> Ordering { pub fn path_to_repo_path(path: &Path) -> Result { macro_rules! err { ($msg:literal, $path:expr) => { - return Err(Error::from_str(&format!($msg, $path.display()))); + return Err(Error::from_str(&format!($msg, $path.display()))) }; } match path.components().next() {