Skip to content

Commit 44c5d0c

Browse files
committed
chore: Cleanup linting
1 parent be913ff commit 44c5d0c

File tree

5 files changed

+3
-4
lines changed

5 files changed

+3
-4
lines changed

packages/libp2p-relay-manager/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ impl PartialEq for Connection {
7373

7474
impl Eq for Connection {}
7575

76+
#[allow(dead_code)]
7677
#[derive(Clone, Debug, PartialEq, Eq)]
7778
struct PendingReservation {
7879
peer_id: PeerId,

src/p2p/behaviour.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ pub enum KadResult {
9292
Peers(Vec<PeerId>),
9393
/// The query successfully returns a `GetRecord` result.
9494
Records(Vec<Record>),
95-
///
9695
Record(Record),
9796
}
9897

src/repo/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,6 @@ impl RepoFetch {
11561156
self
11571157
}
11581158

1159-
///
11601159
pub fn exit_on_error(mut self) -> Self {
11611160
self.refs = self.refs.with_exit_on_error();
11621161
self
@@ -1287,7 +1286,6 @@ impl RepoInsertPin {
12871286
self
12881287
}
12891288

1290-
///
12911289
pub fn exit_on_error(mut self) -> Self {
12921290
self.refs = self.refs.with_exit_on_error();
12931291
self

src/unixfs/ls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl Stream for UnixfsLs {
175175
},
176176
Ok(ContinuedWalk::RootDirectory( cid, path, _)) => {
177177
let path = path.to_string_lossy().to_string();
178-
root_directory = path.clone();
178+
root_directory.clone_from(&path);
179179
yield Entry::RootDirectory { cid: *cid, path };
180180
}
181181
Ok(ContinuedWalk::Directory( cid, path, _)) => {

unixfs/src/file.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ impl From<FileError> for FileReadFailed {
151151
/// This at least sounded useful early on as the quick-protobuf produces many Option<Cow> values
152152
/// which are a bit tricky to handle. We never turn them into Option<Cow::Owned> so we can safely
153153
/// use these.
154+
#[allow(dead_code)]
154155
pub(crate) trait UnwrapBorrowedExt<'a> {
155156
/// Does not default but requires there to be an borrowed inner value.
156157
fn unwrap_borrowed(self) -> &'a [u8];

0 commit comments

Comments
 (0)