Fix code quality: trailing whitespace, unused imports, clippy warnings

- Fix trailing whitespace in kex.rs and s3.rs
- Add missing KexProposal import in kex_complete.rs
- Auto-fix clippy warnings across all crates
- All 153 tests pass
This commit is contained in:
Warren
2026-06-19 05:21:38 +08:00
parent 4b37e524cf
commit d94cb2df4c
135 changed files with 7256 additions and 4321 deletions

View File

@@ -286,9 +286,9 @@ impl FileTreeSled {
label: &str,
file_uuid: &str,
sha256: Option<&str>,
original_name: &str,
_original_name: &str,
file_size: Option<i64>,
mime_type: Option<&str>,
_mime_type: Option<&str>,
parent_id: Option<&str>,
) -> FileNode {
FileNode {
@@ -314,7 +314,7 @@ impl FileTreeSled {
pub fn build_tree(nodes: &[FileNode]) -> Vec<FileNode> {
let mut roots = Vec::new();
let node_map: HashMap<String, &FileNode> =
let _node_map: HashMap<String, &FileNode> =
nodes.iter().map(|n| (n.node_id.clone(), n)).collect();
for node in nodes {