Skip to content

Commit

Permalink
Fix clippy issues
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Szczygieł <[email protected]>
  • Loading branch information
matszczygiel committed Jul 15, 2024
1 parent fabd93d commit 36160f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit 36160f0

Please sign in to comment.