repo: fix type name in ReadonlyRepo debug output, show ellipsis

This commit is contained in:
Yuya Nishihara 2024-10-07 10:04:43 +09:00
parent f4df996242
commit 47ff6f18aa

View file

@ -137,7 +137,9 @@ pub struct ReadonlyRepo {
impl Debug for ReadonlyRepo {
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), std::fmt::Error> {
f.debug_struct("Repo").field("store", &self.store).finish()
f.debug_struct("ReadonlyRepo")
.field("store", &self.store)
.finish_non_exhaustive()
}
}