summaryrefslogtreecommitdiffstats
path: root/adenosine-pds/src/car.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-11-06 21:15:12 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-11-06 21:15:12 -0800
commitae03334a64b1d7d6506ffb60a01f5c7f941900a6 (patch)
tree87ffe21c51e2e404d798a9e257079410ac044fde /adenosine-pds/src/car.rs
parent8c217067ee5132c6e5453e1c09b2391880e51d83 (diff)
downloadadenosine-ae03334a64b1d7d6506ffb60a01f5c7f941900a6.tar.gz
adenosine-ae03334a64b1d7d6506ffb60a01f5c7f941900a6.zip
pds: partial clippy clean
Diffstat (limited to 'adenosine-pds/src/car.rs')
-rw-r--r--adenosine-pds/src/car.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/adenosine-pds/src/car.rs b/adenosine-pds/src/car.rs
index 63911e5..b14d0b1 100644
--- a/adenosine-pds/src/car.rs
+++ b/adenosine-pds/src/car.rs
@@ -56,7 +56,7 @@ async fn inner_car_loader(
.await?;
// pin the header (?)
- if car_header.roots().len() >= 1 {
+ if !car_header.roots().is_empty() {
db.alias(alias.as_bytes(), Some(&car_header.roots()[0]))?;
}