Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c999adf

Browse files
author
“ramfox”
committedFeb 4, 2025·
fmt
1 parent 4fcb447 commit c999adf

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed
 

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Here is a basic example of how to set up `iroh-blobs` with `iroh`:
3232

3333
```rust
3434
use 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]
3838
async fn main() -> anyhow::Result<()> {

‎src/hash.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,10 @@ impl<'de> Deserialize<'de> for HashAndFormat {
416416

417417
#[cfg(test)]
418418
mod 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() {

‎src/protocol.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,8 @@ impl TryFrom<VarInt> for Closed {
483483

484484
#[cfg(test)]
485485
mod 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() {

‎src/protocol/range_spec.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,12 @@ impl<'a> Iterator for NonEmptyRequestRangeSpecIter<'a> {
354354
mod 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();

‎src/ticket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ impl<'de> Deserialize<'de> for BlobTicket {
153153
mod 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");

0 commit comments

Comments
 (0)
Please sign in to comment.