Skip to content

Commit

Permalink
Merge pull request #336 from NordSecurity/msz/cargo-machette
Browse files Browse the repository at this point in the history
Remove unused dependencies, fix clippy lints
  • Loading branch information
matszczygiel authored Jul 15, 2024
2 parents 630126f + ceaca6a commit df4debd
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 22 deletions.
15 changes: 0 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion drop-transfer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ infer = "0.13.0"
libc = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
sha-1 = "0.10"
sha2 = { workspace = true }
slog = { workspace = true }
strum = { workspace = true }
Expand Down
6 changes: 3 additions & 3 deletions drop-transfer/src/file/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ where
}
}

impl ToString for FileSubPath {
fn to_string(&self) -> String {
self.0.join(SEPARATOR)
impl fmt::Display for FileSubPath {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(&self.0.join(SEPARATOR))
}
}

Expand Down
1 change: 1 addition & 0 deletions drop-transfer/src/tasks.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use tokio::sync::mpsc;

#[derive(Clone)]
#[allow(unused)]
pub struct AliveGuard(mpsc::Sender<()>);

pub struct AliveWaiter(AliveGuard, mpsc::Receiver<()>);
Expand Down
3 changes: 0 additions & 3 deletions norddrop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ crate-type = ["cdylib"]
uniffi = { git = "https://github.com/NordSecurity/uniffi-rs", tag = "v0.3.1+v0.25.0" }

uuid = { workspace = true }
libc = { workspace = true }
slog = { workspace = true }
tokio = { workspace = true }
async-trait = { workspace = true }
url = { workspace = true }

drop-transfer = { version = "1.0", path = "../drop-transfer" }
drop-config = { version = "1.0", path = "../drop-config" }
Expand Down

0 comments on commit df4debd

Please sign in to comment.