File tree Expand file tree Collapse file tree 5 files changed +6
-7
lines changed Expand file tree Collapse file tree 5 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ Here is a basic example of how to set up `iroh-blobs` with `iroh`:
32
32
33
33
``` rust
34
34
use iroh :: {protocol :: Router , Endpoint };
35
- use iroh_blobs :: {store :: traits :: Store , net_protocol :: Blobs };
35
+ use iroh_blobs :: {store :: Store , net_protocol :: Blobs };
36
36
37
37
#[tokio:: main]
38
38
async fn main () -> anyhow :: Result <()> {
Original file line number Diff line number Diff line change @@ -416,11 +416,10 @@ impl<'de> Deserialize<'de> for HashAndFormat {
416
416
417
417
#[ cfg( test) ]
418
418
mod tests {
419
-
420
- use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
421
419
use serde_test:: { assert_tokens, Configure , Token } ;
422
420
423
421
use super :: * ;
422
+ use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
424
423
425
424
#[ test]
426
425
fn test_display_parse_roundtrip ( ) {
Original file line number Diff line number Diff line change @@ -483,9 +483,8 @@ impl TryFrom<VarInt> for Closed {
483
483
484
484
#[ cfg( test) ]
485
485
mod tests {
486
- use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
487
-
488
486
use super :: { GetRequest , Request } ;
487
+ use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
489
488
490
489
#[ test]
491
490
fn request_wire_format ( ) {
Original file line number Diff line number Diff line change @@ -354,11 +354,12 @@ impl<'a> Iterator for NonEmptyRequestRangeSpecIter<'a> {
354
354
mod tests {
355
355
use std:: ops:: Range ;
356
356
357
- use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
358
357
use proptest:: prelude:: * ;
359
358
360
359
use super :: * ;
361
360
361
+ use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
362
+
362
363
fn ranges ( value_range : Range < u64 > ) -> impl Strategy < Value = ChunkRanges > {
363
364
prop:: collection:: vec ( ( value_range. clone ( ) , value_range) , 0 ..16 ) . prop_map ( |v| {
364
365
let mut res = ChunkRanges :: empty ( ) ;
Original file line number Diff line number Diff line change @@ -153,10 +153,10 @@ impl<'de> Deserialize<'de> for BlobTicket {
153
153
mod tests {
154
154
use std:: net:: SocketAddr ;
155
155
156
- use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
157
156
use iroh:: { PublicKey , SecretKey } ;
158
157
159
158
use super :: * ;
159
+ use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
160
160
161
161
fn make_ticket ( ) -> BlobTicket {
162
162
let hash = Hash :: new ( b"hi there" ) ;
You can’t perform that action at this time.
0 commit comments