Skip to content

Commit 63550e5

Browse files
committed
chore: codefmt
1 parent 3ba591e commit 63550e5

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

src/binder/mod.rs

+8-20
Original file line numberDiff line numberDiff line change
@@ -227,17 +227,11 @@ impl<'a, T: Transaction> BinderContext<'a, T> {
227227

228228
pub fn view(&self, view_name: TableName) -> Result<Option<&View>, DatabaseError> {
229229
if let Some(real_name) = self.table_aliases.get(view_name.as_ref()) {
230-
self.transaction.view(
231-
self.table_cache,
232-
self.view_cache,
233-
real_name.clone(),
234-
)
230+
self.transaction
231+
.view(self.table_cache, self.view_cache, real_name.clone())
235232
} else {
236-
self.transaction.view(
237-
self.table_cache,
238-
self.view_cache,
239-
view_name.clone(),
240-
)
233+
self.transaction
234+
.view(self.table_cache, self.view_cache, view_name.clone())
241235
}
242236
}
243237

@@ -260,17 +254,11 @@ impl<'a, T: Transaction> BinderContext<'a, T> {
260254

261255
if source.is_none() && !only_table {
262256
source = if let Some(real_name) = self.table_aliases.get(table_name.as_ref()) {
263-
self.transaction.view(
264-
self.table_cache,
265-
self.view_cache,
266-
real_name.clone(),
267-
)
257+
self.transaction
258+
.view(self.table_cache, self.view_cache, real_name.clone())
268259
} else {
269-
self.transaction.view(
270-
self.table_cache,
271-
self.view_cache,
272-
table_name.clone(),
273-
)
260+
self.transaction
261+
.view(self.table_cache, self.view_cache, table_name.clone())
274262
}?
275263
.map(Source::View);
276264
}

0 commit comments

Comments
 (0)