mirror of
https://github.com/trussed-dev/trussed-staging.git
synced 2026-06-20 04:16:23 -07:00
Fix clippy lints
This commit is contained in:
@@ -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")]
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// Copyright (C) Nitrokey GmbH
|
||||
// SPDX-License-Identifier: Apache-2.0 or MIT
|
||||
|
||||
use littlefs2::path::PathBuf;
|
||||
|
||||
use crate::streaming::ChunkedClient;
|
||||
|
||||
Reference in New Issue
Block a user