File tree Expand file tree Collapse file tree 5 files changed +3
-4
lines changed
packages/libp2p-relay-manager/src Expand file tree Collapse file tree 5 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ impl PartialEq for Connection {
73
73
74
74
impl Eq for Connection { }
75
75
76
+ #[ allow( dead_code) ]
76
77
#[ derive( Clone , Debug , PartialEq , Eq ) ]
77
78
struct PendingReservation {
78
79
peer_id : PeerId ,
Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ pub enum KadResult {
92
92
Peers ( Vec < PeerId > ) ,
93
93
/// The query successfully returns a `GetRecord` result.
94
94
Records ( Vec < Record > ) ,
95
- ///
96
95
Record ( Record ) ,
97
96
}
98
97
Original file line number Diff line number Diff line change @@ -1156,7 +1156,6 @@ impl RepoFetch {
1156
1156
self
1157
1157
}
1158
1158
1159
- ///
1160
1159
pub fn exit_on_error ( mut self ) -> Self {
1161
1160
self . refs = self . refs . with_exit_on_error ( ) ;
1162
1161
self
@@ -1287,7 +1286,6 @@ impl RepoInsertPin {
1287
1286
self
1288
1287
}
1289
1288
1290
- ///
1291
1289
pub fn exit_on_error ( mut self ) -> Self {
1292
1290
self . refs = self . refs . with_exit_on_error ( ) ;
1293
1291
self
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ impl Stream for UnixfsLs {
175
175
} ,
176
176
Ok ( ContinuedWalk :: RootDirectory ( cid, path, _) ) => {
177
177
let path = path. to_string_lossy( ) . to_string( ) ;
178
- root_directory = path . clone ( ) ;
178
+ root_directory. clone_from ( & path ) ;
179
179
yield Entry :: RootDirectory { cid: * cid, path } ;
180
180
}
181
181
Ok ( ContinuedWalk :: Directory ( cid, path, _) ) => {
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ impl From<FileError> for FileReadFailed {
151
151
/// This at least sounded useful early on as the quick-protobuf produces many Option<Cow> values
152
152
/// which are a bit tricky to handle. We never turn them into Option<Cow::Owned> so we can safely
153
153
/// use these.
154
+ #[ allow( dead_code) ]
154
155
pub ( crate ) trait UnwrapBorrowedExt < ' a > {
155
156
/// Does not default but requires there to be an borrowed inner value.
156
157
fn unwrap_borrowed ( self ) -> & ' a [ u8 ] ;
You can’t perform that action at this time.
0 commit comments