fix(config-sync): satisfy clippy warnings
This commit is contained in:
1 parent
269814945d
commit
4576da4551
2 files changed
+10
-10
No files matched your search
@@ -793,14 +793,14 @@ pub async fn launch(
|
|||||||
let _ = parser_task.await;
|
let _ = parser_task.await;
|
||||||
tracing::info!("[{}] Exited with code {:?}", name_for_task, code);
|
tracing::info!("[{}] Exited with code {:?}", name_for_task, code);
|
||||||
|
|
||||||
if config_sync_active {
|
if config_sync_active
|
||||||
if let Err(e) = crate::instance::config_sync::finish(
|
&& let Err(e) = crate::instance::config_sync::finish(
|
||||||
config_sync_profile.as_deref(),
|
config_sync_profile.as_deref(),
|
||||||
&meta_dir_owned,
|
&meta_dir_owned,
|
||||||
&minecraft_dir_owned,
|
&minecraft_dir_owned,
|
||||||
) {
|
)
|
||||||
tracing::warn!("Failed to sync config for '{}': {}", name_for_task, e);
|
{
|
||||||
}
|
tracing::warn!("Failed to sync config for '{}': {}", name_for_task, e);
|
||||||
}
|
}
|
||||||
drop(config_sync_lock);
|
drop(config_sync_lock);
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -124,11 +124,11 @@ impl App {
|
|||||||
import_modpack::render(frame, area, self.focused);
|
import_modpack::render(frame, area, self.focused);
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.focused == FocusedArea::ConfirmDelete {
|
if self.focused == FocusedArea::ConfirmDelete
|
||||||
if let Some(target) = confirm_popup::pending_target() {
|
&& let Some(target) = confirm_popup::pending_target()
|
||||||
let area = confirm_popup_area(frame.area(), &target);
|
{
|
||||||
frame.render_widget(ConfirmPopup::for_target(&target), area);
|
let area = confirm_popup_area(frame.area(), &target);
|
||||||
}
|
frame.render_widget(ConfirmPopup::for_target(&target), area);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user