From 47ff6f18aa3f7db781b167b3e5a22dff9aa2438c Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Mon, 7 Oct 2024 10:04:43 +0900 Subject: [PATCH] repo: fix type name in ReadonlyRepo debug output, show ellipsis --- lib/src/repo.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/repo.rs b/lib/src/repo.rs index 1a2ef180e..c01f05c24 100644 --- a/lib/src/repo.rs +++ b/lib/src/repo.rs @@ -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() } }