Skip to content

Commit

Permalink
Rename display_type example
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiburt committed Feb 1, 2025
1 parent fbd930c commit d7a0bb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tabled/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ path = "examples/derive/display_with.rs"
required-features = ["derive"]

[[example]]
name = "derive_display_with_option"
path = "examples/derive/display_with_option.rs"
name = "derive_display_type"
path = "examples/derive/display_type.rs"
required-features = ["derive"]

[[example]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn main() {
},
];

let table_data: Vec<CountryDisplay> = data.into_iter().map(Into::into).collect();
let table_data = data.into_iter().map(CountryDisplay::from);
let table = tabled::Table::new(table_data);
println!("{}", table);
}

0 comments on commit d7a0bb9

Please sign in to comment.