mirror of
https://github.com/casey/just.git
synced 2025-08-04 15:08:39 +00:00
fix: keep attributes on modules when using --dump
This commit is contained in:
parent
1bf12cadef
commit
cf34244d2b
1 changed files with 10 additions and 0 deletions
10
src/item.rs
10
src/item.rs
|
@ -45,11 +45,21 @@ impl Display for Item<'_> {
|
|||
write!(f, " {relative}")
|
||||
}
|
||||
Self::Module {
|
||||
doc,
|
||||
groups,
|
||||
name,
|
||||
relative,
|
||||
optional,
|
||||
..
|
||||
} => {
|
||||
if let Some(docstr) = doc {
|
||||
writeln!(f, "# {docstr}")?;
|
||||
}
|
||||
|
||||
for group in groups.iter() {
|
||||
writeln!(f, "[group('{}')]", group)?;
|
||||
}
|
||||
|
||||
write!(f, "mod")?;
|
||||
|
||||
if *optional {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue