Skip to content

Commit a89ec2c

Browse files
committed
fmt
1 parent 7208efa commit a89ec2c

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

src/api/blobs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ impl Blobs {
144144
/// clears the protections before.
145145
///
146146
/// Users should rely only on garbage collection for blob deletion.
147-
148147
#[allow(dead_code)]
149148
pub(crate) async fn delete_with_opts(&self, options: DeleteOptions) -> RequestResult<()> {
150149
trace!("{options:?}");

src/store/fs.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,13 @@ use options::Options;
143143
use tracing::Instrument;
144144
mod gc;
145145

146-
use crate::HashAndFormat;
147-
use crate::api::{
148-
self,
149-
blobs::{AddProgressItem, ExportMode, ExportProgressItem},
150-
Store,
146+
use crate::{
147+
api::{
148+
self,
149+
blobs::{AddProgressItem, ExportMode, ExportProgressItem},
150+
Store,
151+
},
152+
HashAndFormat,
151153
};
152154

153155
/// Create a 16 byte unique ID.

src/store/fs/meta.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ use crate::{
2626
CreateTagRequest, DeleteBlobsMsg, DeleteTagsRequest, ListBlobsMsg, ListRequest,
2727
ListTagsRequest, RenameTagRequest, SetTagRequest, ShutdownMsg, SyncDbMsg,
2828
},
29-
tags::TagInfo, Tag,
30-
}, util::channel::oneshot, Hash
29+
tags::TagInfo,
30+
Tag,
31+
},
32+
util::channel::oneshot,
33+
Hash,
3134
};
3235
mod proto;
3336
pub use proto::*;

src/store/fs/meta/tables.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
use redb::{ReadableTable, TableDefinition, TableError};
33

44
use super::EntryState;
5-
use crate::store::{fs::delete_set::FileTransaction};
6-
use crate::{Hash, HashAndFormat, api::Tag};
5+
use crate::{api::Tag, store::fs::delete_set::FileTransaction, Hash, HashAndFormat};
76

87
pub(super) const BLOBS_TABLE: TableDefinition<Hash, EntryState> = TableDefinition::new("blobs-0");
98

src/store/mem.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ use crate::{
6161
util::{SizeInfo, SparseMemFile, Tag},
6262
IROH_BLOCK_SIZE,
6363
},
64-
HashAndFormat,
6564
util::temp_tag::{TagDrop, TempTagScope, TempTags},
66-
BlobFormat, Hash,
65+
BlobFormat, Hash, HashAndFormat,
6766
};
6867

6968
#[derive(Debug, Default)]

src/store/util.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ impl<T: RangeSetEntry + Clone> RangeSetExt<T> for RangeSetRef<T> {
154154
#[cfg(feature = "fs-store")]
155155
mod fs {
156156
use std::{
157-
fmt, fs::{File, OpenOptions}, io::{self, Read, Write}, path::Path
157+
fmt,
158+
fs::{File, OpenOptions},
159+
io::{self, Read, Write},
160+
path::Path,
158161
};
159162

160163
use arrayvec::ArrayString;

0 commit comments

Comments
 (0)