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`:
3232
3333``` rust
3434use iroh :: {protocol :: Router , Endpoint };
35- use iroh_blobs :: {store :: traits :: Store , net_protocol :: Blobs };
35+ use iroh_blobs :: {store :: Store , net_protocol :: Blobs };
3636
3737#[tokio:: main]
3838async fn main () -> anyhow :: Result <()> {
Original file line number Diff line number Diff line change @@ -416,11 +416,10 @@ impl<'de> Deserialize<'de> for HashAndFormat {
416416
417417#[ cfg( test) ]
418418mod tests {
419-
420- use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
421419 use serde_test:: { assert_tokens, Configure , Token } ;
422420
423421 use super :: * ;
422+ use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
424423
425424 #[ test]
426425 fn test_display_parse_roundtrip ( ) {
Original file line number Diff line number Diff line change @@ -483,9 +483,8 @@ impl TryFrom<VarInt> for Closed {
483483
484484#[ cfg( test) ]
485485mod tests {
486- use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
487-
488486 use super :: { GetRequest , Request } ;
487+ use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
489488
490489 #[ test]
491490 fn request_wire_format ( ) {
Original file line number Diff line number Diff line change @@ -354,11 +354,12 @@ impl<'a> Iterator for NonEmptyRequestRangeSpecIter<'a> {
354354mod tests {
355355 use std:: ops:: Range ;
356356
357- use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
358357 use proptest:: prelude:: * ;
359358
360359 use super :: * ;
361360
361+ use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
362+
362363 fn ranges ( value_range : Range < u64 > ) -> impl Strategy < Value = ChunkRanges > {
363364 prop:: collection:: vec ( ( value_range. clone ( ) , value_range) , 0 ..16 ) . prop_map ( |v| {
364365 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 {
153153mod tests {
154154 use std:: net:: SocketAddr ;
155155
156- use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
157156 use iroh:: { PublicKey , SecretKey } ;
158157
159158 use super :: * ;
159+ use crate :: { assert_eq_hex, util:: hexdump:: parse_hexdump} ;
160160
161161 fn make_ticket ( ) -> BlobTicket {
162162 let hash = Hash :: new ( b"hi there" ) ;
You can’t perform that action at this time.
0 commit comments