Skip to content

Commit 40e989a

Browse files
committed
chore: clippy
1 parent 1f378d0 commit 40e989a

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

kernel/src/engine/default/filesystem.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,11 @@ impl<E: TaskExecutor> FileSystemClient for ObjectStoreFileSystemClient<E> {
135135
if url.is_presigned() {
136136
// have to annotate type here or rustc can't figure it out
137137
Ok::<bytes::Bytes, Error>(reqwest::get(url).await?.bytes().await?)
138+
} else if let Some(rng) = range {
139+
Ok(store.get_range(&path, rng).await?)
138140
} else {
139-
if let Some(rng) = range {
140-
Ok(store.get_range(&path, rng).await?)
141-
} else {
142-
let result = store.get(&path).await?;
143-
Ok(result.bytes().await?)
144-
}
141+
let result = store.get(&path).await?;
142+
Ok(result.bytes().await?)
145143
}
146144
}
147145
})

kernel/src/engine/default/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl<E: TaskExecutor> Engine for DefaultEngine<E> {
158158
}
159159
}
160160

161-
pub(self) trait UrlExt {
161+
trait UrlExt {
162162
fn is_presigned(&self) -> bool;
163163
}
164164

0 commit comments

Comments
 (0)