Fix clippy lints

This commit is contained in:
Sosthène Guédon
2023-04-24 18:12:43 +02:00
parent 10a4663f77
commit bcd3cd02a8
3 changed files with 11 additions and 2 deletions
+4 -1
View File
@@ -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")]
+4 -1
View File
@@ -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<PathBuf, Error> {
}
let mut path = PathBuf::new();
path.push(&client_id);
path.push(client_id);
path.push(&PathBuf::from("dat"));
path.push(client_path);
Ok(path)
+3
View File
@@ -1,3 +1,6 @@
// Copyright (C) Nitrokey GmbH
// SPDX-License-Identifier: Apache-2.0 or MIT
use littlefs2::path::PathBuf;
use crate::streaming::ChunkedClient;