diff --git a/pbs-datastore/src/prune.rs b/pbs-datastore/src/prune.rs index c144b3db..f968e718 100644 --- a/pbs-datastore/src/prune.rs +++ b/pbs-datastore/src/prune.rs @@ -22,13 +22,12 @@ impl PruneMark { impl std::fmt::Display for PruneMark { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - let txt = match self { + f.write_str(match self { PruneMark::Protected => "protected", PruneMark::Keep => "keep", PruneMark::KeepPartial => "keep-partial", PruneMark::Remove => "remove", - }; - write!(f, "{}", txt) + }) } }