Skip to content

Commit

Permalink
Remove trailing semicolon from internal err! macro
Browse files Browse the repository at this point in the history
This will allow this crate to continue to compile if
rust-lang/rust#33953 is fixed
  • Loading branch information
Aaron1011 committed Nov 3, 2020
1 parent deed14d commit 7d261e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ pub fn c_cmp_to_ordering(cmp: c_int) -> Ordering {
pub fn path_to_repo_path(path: &Path) -> Result<CString, Error> {
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() {
Expand Down

0 comments on commit 7d261e8

Please sign in to comment.