Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
flxoacn committed Dec 10, 2024
1 parent c738727 commit fc9d262
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion northstar-runtime/src/common/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl<'de> Deserialize<'de> for Name {
{
struct NameVisitor;

impl<'de> Visitor<'de> for NameVisitor {
impl Visitor<'_> for NameVisitor {
type Value = Name;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion northstar-runtime/src/common/non_nul_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl<'de> Deserialize<'de> for NonNulString {
{
struct Visitor;

impl<'de> serde::de::Visitor<'de> for Visitor {
impl serde::de::Visitor<'_> for Visitor {
type Value = NonNulString;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 1 addition & 1 deletion northstar-runtime/src/npk/dm_verity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ fn calculate_hash_tree_level_offsets(
let mut rem_size = image_size;

while rem_size > block_size {
let num_blocks = (rem_size + block_size - 1) / block_size;
let num_blocks = rem_size.div_ceil(block_size);
let level_size = round_up_to_multiple(num_blocks * digest_size, block_size);

level_sizes.push(level_size);
Expand Down
4 changes: 2 additions & 2 deletions northstar-runtime/src/npk/manifest/mount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl<'de> Deserialize<'de> for MountOptions {
D: Deserializer<'de>,
{
struct MountOptionsVisitor;
impl<'de> Visitor<'de> for MountOptionsVisitor {
impl Visitor<'_> for MountOptionsVisitor {
type Value = MountOptions;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down Expand Up @@ -205,7 +205,7 @@ impl<'de> Deserialize<'de> for MountOptions {
fn deserialize_tmpfs_size<'de, D: Deserializer<'de>>(deserializer: D) -> Result<u64, D::Error> {
struct SizeVisitor;

impl<'de> Visitor<'de> for SizeVisitor {
impl Visitor<'_> for SizeVisitor {
type Value = u64;
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
formatter.write_str("a number of bytes or a string with the size (e.g. 25M)")
Expand Down
2 changes: 1 addition & 1 deletion northstar-runtime/src/runtime/devicemapper/verity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl DmVerityTarget {
}
}

impl<'a> Default for DmVerityTargetBuilder<'a> {
impl Default for DmVerityTargetBuilder<'_> {
fn default() -> Self {
DmVerityTargetBuilder {
version: DmVerityVersion::V1,
Expand Down

0 comments on commit fc9d262

Please sign in to comment.