Skip to content

Commit ccc4007

Browse files
committed
fix: don't double-wrap arcs
1 parent a60860e commit ccc4007

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

crates/io/src/store.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,11 @@ impl StacStore {
158158

159159
impl<T> From<T> for StacStore
160160
where
161-
T: ObjectStore,
161+
T: Into<Arc<dyn ObjectStore>>,
162162
{
163163
fn from(store: T) -> Self {
164-
StacStore {
165-
store: Arc::new(store),
166-
root: None,
167-
}
164+
let store: Arc<dyn ObjectStore> = store.into();
165+
StacStore { store, root: None }
168166
}
169167
}
170168

0 commit comments

Comments
 (0)