Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Verified Commit 9d25641e authored by Ayush Singh's avatar Ayush Singh
Browse files

Fix some clippy errors


No functional changes

Signed-off-by: Ayush Singh's avatarAyush Singh <ayush@beagleboard.org>
parent b0543c5f
Branches
Tags
No related merge requests found
Pipeline #24413 passed with stages
in 9 minutes
#![allow(clippy::literal_string_with_formatting_args)]
mod cli;
use bb_imager::DownloadFlashingStatus;
......
......@@ -225,7 +225,7 @@ impl Boards {
let item = res.get(*i).expect("No Subitem");
res = match item {
OsListItem::Image(_) => panic!("No subitem"),
OsListItem::SubList { subitems, .. } => &subitems,
OsListItem::SubList { subitems, .. } => subitems,
OsListItem::RemoteSubList { .. } => return None,
}
}
......@@ -290,7 +290,7 @@ fn check_board(item: &OsListItem, tags: &HashSet<String>) -> bool {
match item {
OsListItem::Image(os_image) => !tags.is_disjoint(&os_image.devices),
OsListItem::SubList { subitems, .. } => subitems.iter().any(|x| check_board(x, tags)),
OsListItem::RemoteSubList { devices, .. } => !tags.is_disjoint(&devices),
OsListItem::RemoteSubList { devices, .. } => !tags.is_disjoint(devices),
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment