From 5e52ddc87172e1b8491a6139faaff5678ec6f5f3 Mon Sep 17 00:00:00 2001 From: John Michael Burke Date: Tue, 30 Jul 2024 18:55:02 -0700 Subject: [PATCH] clippy --- console_backend/src/tabs/baseline_tab.rs | 2 +- console_backend/src/tabs/solution_tab/solution_position_tab.rs | 2 +- swiftnav_console/main.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/console_backend/src/tabs/baseline_tab.rs b/console_backend/src/tabs/baseline_tab.rs index 036028e1c..64ce41fa3 100644 --- a/console_backend/src/tabs/baseline_tab.rs +++ b/console_backend/src/tabs/baseline_tab.rs @@ -149,7 +149,7 @@ impl BaselineTab { /// # Parameters /// - `mode_string`: The mode string to attempt to prepare data for frontend. /// - `update_current`: Indicating whether the current solution should be updated by - /// this modes last n/e entry. + /// this modes last n/e entry. fn _synchronize_plot_data_by_mode(&mut self, mode_string: &str, update_current: bool) { let mode_idx = match self.mode_strings.iter().position(|x| *x == *mode_string) { Some(idx) => idx, diff --git a/console_backend/src/tabs/solution_tab/solution_position_tab.rs b/console_backend/src/tabs/solution_tab/solution_position_tab.rs index 3b7f48a5a..5e82afbbd 100644 --- a/console_backend/src/tabs/solution_tab/solution_position_tab.rs +++ b/console_backend/src/tabs/solution_tab/solution_position_tab.rs @@ -752,7 +752,7 @@ impl SolutionPositionTab { /// # Parameters /// - `mode_string`: The mode string to attempt to prepare data for frontend. /// - `update_current`: Indicating whether the current solution should be updated by - /// this modes last lat/lon entry. + /// this modes last lat/lon entry. fn _synchronize_plot_data_by_mode(&mut self, mode_string: &str, update_current: bool) { let idx = match self.mode_strings.iter().position(|x| x == mode_string) { Some(idx) => idx, diff --git a/swiftnav_console/main.py b/swiftnav_console/main.py index e08b695ba..94cfaa29c 100644 --- a/swiftnav_console/main.py +++ b/swiftnav_console/main.py @@ -778,7 +778,7 @@ def main(passed_args: Optional[Tuple[str, ...]] = None) -> int: QLocale.setDefault(QLocale.c()) # Silence webengine context logging. - web_engine_context_log = QLoggingCategory("qt.webenginecontext") + web_engine_context_log = QLoggingCategory("qt.webenginecontext") # type: ignore web_engine_context_log.setFilterRules("*.info=false") QCoreApplication.setAttribute(Qt.ApplicationAttribute.AA_ShareOpenGLContexts) QCoreApplication.setAttribute(Qt.ApplicationAttribute.AA_UseDesktopOpenGL) @@ -794,7 +794,6 @@ def main(passed_args: Optional[Tuple[str, ...]] = None) -> int: QQuickStyle.setStyle("Material") # We specifically *don't* want the RobotoCondensed-Bold.ttf font so we get the right look when bolded. - qmlRegisterType(ConnectionData, "SwiftConsole", 1, 0, "ConnectionData") # type: ignore qmlRegisterType(AdvancedImuPoints, "SwiftConsole", 1, 0, "AdvancedImuPoints") # type: ignore qmlRegisterType(AdvancedMagnetometerPoints, "SwiftConsole", 1, 0, "AdvancedMagnetometerPoints") # type: ignore