diff --git a/git-object/src/types.rs b/git-object/src/types.rs index bebe7cd01b4..a7a97b68564 100644 --- a/git-object/src/types.rs +++ b/git-object/src/types.rs @@ -91,7 +91,7 @@ impl Kind { impl fmt::Display for Kind { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.write_str(std::str::from_utf8(self.to_bytes()).expect("invalid utf8 in kind name")) + f.write_str(std::str::from_utf8(self.to_bytes()).expect("Converting Kind name to utf8")) } }