From 65c217ae27e6b0abe26d5baea40f2bab695a3651 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 17 Feb 2026 20:30:44 -0800 Subject: [BNTL Utils] Fix misc clippy lints --- plugins/bntl_utils/src/tbd.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/bntl_utils/src/tbd.rs') diff --git a/plugins/bntl_utils/src/tbd.rs b/plugins/bntl_utils/src/tbd.rs index 51222766..9075a8dc 100644 --- a/plugins/bntl_utils/src/tbd.rs +++ b/plugins/bntl_utils/src/tbd.rs @@ -8,7 +8,8 @@ use std::str::FromStr; pub fn parse_tbd_info(data: &mut impl Read) -> Result, serde_saphyr::Error> { let mut documents = Vec::new(); for file in serde_saphyr::read::<_, TbdFile>(data) { - if let Some(info) = TbdInfo::try_from(file?).ok() { + // TODO: Float errors to caller + if let Ok(info) = TbdInfo::try_from(file?) { documents.push(info); } } @@ -301,8 +302,8 @@ impl TbdTarget { .iter() .map(|a| { Ok(TbdTarget { - arch: a.clone(), - platform: platform.clone(), + arch: *a, + platform: *platform, }) }) .collect() -- cgit v1.3.1