ok/jj
1
0
Fork 0
forked from mirrors/jj

templater: label author/committer name in default formatting

Just for consistency with .name() method call.
This commit is contained in:
Yuya Nishihara 2023-01-23 13:11:29 +09:00
parent 47e6ceb5fa
commit df085a4bd5

View file

@ -33,7 +33,7 @@ pub trait Template<C> {
impl Template<()> for Signature {
fn format(&self, _: &(), formatter: &mut dyn Formatter) -> io::Result<()> {
write!(formatter, "{}", self.name)?;
write!(formatter.labeled("name"), "{}", self.name)?;
write!(formatter, " <")?;
write!(formatter.labeled("email"), "{}", self.email)?;
write!(formatter, ">")?;