From bcd3cd02a811b2ceef438dad10d981d9bb0c6ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Mon, 24 Apr 2023 18:12:43 +0200 Subject: [PATCH] Fix clippy lints --- src/streaming/mod.rs | 5 ++++- src/streaming/store.rs | 5 ++++- src/streaming/utils.rs | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/streaming/mod.rs b/src/streaming/mod.rs index 8a1a801..360f6a9 100644 --- a/src/streaming/mod.rs +++ b/src/streaming/mod.rs @@ -1,3 +1,6 @@ +// Copyright (C) Nitrokey GmbH +// SPDX-License-Identifier: Apache-2.0 or MIT + mod store; use store::OpenSeekFrom; @@ -69,7 +72,7 @@ impl Extension for ChunkedExtension { } #[derive(Debug, Deserialize, Serialize, PartialEq, Eq)] -#[allow(missing_docs)] +#[allow(missing_docs, clippy::large_enum_variant)] pub enum ChunkedRequest { StartChunkedWrite(request::StartChunkedWrite), #[cfg(feature = "encrypted-chunked")] diff --git a/src/streaming/store.rs b/src/streaming/store.rs index 8d04126..43d99a5 100644 --- a/src/streaming/store.rs +++ b/src/streaming/store.rs @@ -1,3 +1,6 @@ +// Copyright (C) Nitrokey GmbH +// SPDX-License-Identifier: Apache-2.0 or MIT + use littlefs2::driver::Storage as LfsStorage; use littlefs2::fs::{File, Filesystem}; use littlefs2::io::{SeekFrom, Write}; @@ -219,7 +222,7 @@ fn actual_path(client_id: &Path, client_path: &Path) -> Result { } let mut path = PathBuf::new(); - path.push(&client_id); + path.push(client_id); path.push(&PathBuf::from("dat")); path.push(client_path); Ok(path) diff --git a/src/streaming/utils.rs b/src/streaming/utils.rs index e873bb1..31ba426 100644 --- a/src/streaming/utils.rs +++ b/src/streaming/utils.rs @@ -1,3 +1,6 @@ +// Copyright (C) Nitrokey GmbH +// SPDX-License-Identifier: Apache-2.0 or MIT + use littlefs2::path::PathBuf; use crate::streaming::ChunkedClient;