Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
john-michaelburke committed Jul 31, 2024
1 parent eae46d5 commit 5e52ddc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion console_backend/src/tabs/baseline_tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions swiftnav_console/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 5e52ddc

Please sign in to comment.