Skip to content

Commit

Permalink
build: do not pin rust build version
Browse files Browse the repository at this point in the history
  • Loading branch information
iTrooz committed Oct 18, 2023
1 parent cff90bc commit fec3fe7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions efivar/src/store/guid_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ impl GuidGroup {
}

pub fn variable_mut(&mut self, name: &str) -> &mut StoreValue {
self.values
.entry(String::from(name))
.or_insert_with(StoreValue::new)
self.values.entry(String::from(name)).or_default()
}

/// Delete a variable from this GUID group.
Expand Down
4 changes: 1 addition & 3 deletions efivar/src/store/vendor_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ impl VendorGroup {
}

pub fn vendor_mut(&mut self, vendor: &VariableVendor) -> &mut GuidGroup {
self.vendors
.entry(*vendor.as_ref())
.or_insert_with(GuidGroup::new)
self.vendors.entry(*vendor.as_ref()).or_default()
}
}
1 change: 0 additions & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[toolchain]
channel = "1.66.0"
components = [
"rustfmt",
"clippy",
Expand Down

0 comments on commit fec3fe7

Please sign in to comment.