Skip to content

Commit

Permalink
Fix clippy and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cbourjau committed May 14, 2023
1 parent d066feb commit 080af4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions root-io/tests/read_simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ impl Model {
.as_fixed_size_iterator(|i| be_i32(i)),
t.branch_by_name("two")?
.as_fixed_size_iterator(|i| be_f32(i)),
t.branch_by_name("three")?
.as_fixed_size_iterator(string)
t.branch_by_name("three")?.as_fixed_size_iterator(string)
)
.map(|(one, two, three)| Self { one, two, three })
.boxed_local())
Expand Down
2 changes: 1 addition & 1 deletion root-ls/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async fn inspect_file(f: &RootFile, sub_matches: &ArgMatches<'_>) {
if sub_matches.is_present("v") {
println!("{:#?}", tree);
} else {
for &(ref name, ref types) in &tree.branch_names_and_types() {
for (name, types) in &tree.branch_names_and_types() {
println!("{}: {:#?}", name, types);
}
}
Expand Down

0 comments on commit 080af4d

Please sign in to comment.