Fixes new clippy lints on the latest nightly (#603)

* Fixes new clippy lints on the latest nightly

We didn't see these before because of our old Rust toolchain.

* fixes nit
This commit is contained in:
kaczmarczyck
2023-03-09 12:08:34 +01:00
committed by GitHub
parent ca65902a8f
commit 752db8cc90
5 changed files with 9 additions and 10 deletions

View File

@@ -261,7 +261,7 @@ impl TockUpgradeStorage {
pub fn new() -> StorageResult<TockUpgradeStorage> {
let mut locations = TockUpgradeStorage {
page_size: get_info(command_nr::get_info_nr::PAGE_SIZE, 0)?,
partition: Partition::new(),
partition: Partition::default(),
metadata: ModRange::new_empty(),
running_metadata: ModRange::new_empty(),
identifier: Self::PARTITION_ADDRESS_A as u32,