Skip to content

Commit faa496d

Browse files
committed
refactor to not trigger clippy
1 parent ac07e21 commit faa496d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/application.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ impl DistroShelfApplication {
222222
}
223223

224224
fn recreate_window(&self) -> adw::ApplicationWindow {
225-
let command_runner = match { self.imp().distrobox_store_ty.borrow().to_owned() } {
225+
let distrobox_store_ty = self.imp().distrobox_store_ty.borrow().to_owned();
226+
let command_runner = match distrobox_store_ty {
226227
DistroboxStoreTy::NullWorking => Distrobox::null_command_runner(&[
227228
DistroboxCommandRunnerResponse::Version,
228229
DistroboxCommandRunnerResponse::new_list_common_distros(),

0 commit comments

Comments
 (0)