Skip to content

Commit 69c328c

Browse files
committed
Change name of enum variant to better match the formatting "character".
1 parent bc472c7 commit 69c328c

File tree

1 file changed

+3
-3
lines changed
  • src/cargo/ops/tree/format

1 file changed

+3
-3
lines changed

src/cargo/ops/tree/format/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ enum Chunk {
1313
License,
1414
Repository,
1515
Features,
16-
Name,
16+
LibName,
1717
}
1818

1919
pub struct Pattern(Vec<Chunk>);
@@ -29,7 +29,7 @@ impl Pattern {
2929
RawChunk::Argument("l") => Chunk::License,
3030
RawChunk::Argument("r") => Chunk::Repository,
3131
RawChunk::Argument("f") => Chunk::Features,
32-
RawChunk::Argument("lib") => Chunk::Name,
32+
RawChunk::Argument("lib") => Chunk::LibName,
3333
RawChunk::Argument(a) => {
3434
bail!("unsupported pattern `{}`", a);
3535
}
@@ -101,7 +101,7 @@ impl<'a> fmt::Display for Display<'a> {
101101
Chunk::Features => {
102102
write!(fmt, "{}", features.join(","))?;
103103
}
104-
Chunk::Name => {
104+
Chunk::LibName => {
105105
if let Some(target) = package
106106
.manifest()
107107
.targets()

0 commit comments

Comments
 (0)