Skip to content

Commit d3eddc9

Browse files
committed
fmt
1 parent 7ef6eb5 commit d3eddc9

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

kernel/src/engine/default/mod.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ impl<E: TaskExecutor> DefaultEngine<E> {
8585
{
8686
// table root is the path of the table in the ObjectStore
8787
let (object_store, _table_root) = parse_url_opts(table_root, options)?;
88-
Ok(Self::new_with_metrics(Arc::new(object_store), task_executor, reporter))
88+
Ok(Self::new_with_metrics(
89+
Arc::new(object_store),
90+
task_executor,
91+
reporter,
92+
))
8993
}
9094

9195
/// Create a new [`DefaultEngine`] instance
@@ -94,10 +98,7 @@ impl<E: TaskExecutor> DefaultEngine<E> {
9498
///
9599
/// - `object_store`: The object store to use.
96100
/// - `task_executor`: Used to spawn async IO tasks. See [executor::TaskExecutor].
97-
pub fn new(
98-
object_store: Arc<DynObjectStore>,
99-
task_executor: Arc<E>,
100-
) -> Self {
101+
pub fn new(object_store: Arc<DynObjectStore>, task_executor: Arc<E>) -> Self {
101102
Self::new_with_metrics(object_store, task_executor, None)
102103
}
103104

@@ -222,8 +223,7 @@ mod tests {
222223
let tmp = tempfile::tempdir().unwrap();
223224
let url = Url::from_directory_path(tmp.path()).unwrap();
224225
let object_store = Arc::new(LocalFileSystem::new());
225-
let engine =
226-
DefaultEngine::new(object_store, Arc::new(TokioBackgroundExecutor::new()));
226+
let engine = DefaultEngine::new(object_store, Arc::new(TokioBackgroundExecutor::new()));
227227
test_arrow_engine(&engine, &url);
228228
}
229229

kernel/src/snapshot/builder.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,15 @@ impl SnapshotBuilder {
8787
let operation_id = MetricId::new();
8888
let reporter = engine.get_metrics_reporter();
8989

90-
let table_path = self.table_root.as_ref()
90+
let table_path = self
91+
.table_root
92+
.as_ref()
9193
.map(|url| url.to_string())
92-
.or_else(|| self.existing_snapshot.as_ref().map(|s| s.table_root().to_string()))
94+
.or_else(|| {
95+
self.existing_snapshot
96+
.as_ref()
97+
.map(|s| s.table_root().to_string())
98+
})
9399
.unwrap_or_else(|| "unknown".to_string());
94100

95101
if let Some(ref r) = reporter {

0 commit comments

Comments
 (0)