From 9ee306315eda80e4c48eb415be856401073b64fc Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 31 May 2022 23:55:12 +0800 Subject: [PATCH] fix warnings that result from the PDDB mutability change --- services/shellchat/src/cmds/wlan.rs | 2 +- services/status/src/time.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/shellchat/src/cmds/wlan.rs b/services/shellchat/src/cmds/wlan.rs index 8c704f58c..8deeed431 100644 --- a/services/shellchat/src/cmds/wlan.rs +++ b/services/shellchat/src/cmds/wlan.rs @@ -84,7 +84,7 @@ impl<'a> ShellCmdApi<'a> for Wlan { }; } "save" => { - let mut pddb = pddb::Pddb::new(); + let pddb = pddb::Pddb::new(); if let Some(ssid) = &self.current_ssid { if let Some(pass) = &self.current_pass { match pddb.get( diff --git a/services/status/src/time.rs b/services/status/src/time.rs index dca00aa7d..4a9fe6789 100644 --- a/services/status/src/time.rs +++ b/services/status/src/time.rs @@ -241,7 +241,7 @@ pub fn start_time_server() { } // once the PDDB is mounted, read in the time zone offsets and then restart the // loop handler using the offsets. - let mut offset_handle = Pddb::new(); + let offset_handle = Pddb::new(); let mut offset_key = offset_handle.get( TIME_SERVER_DICT, TIME_SERVER_UTC_OFFSET, @@ -249,7 +249,7 @@ pub fn start_time_server() { Some(8), None:: ).expect("couldn't open UTC offset key"); - let mut tz_handle = Pddb::new(); + let tz_handle = Pddb::new(); let mut tz_key = tz_handle.get( TIME_SERVER_DICT, TIME_SERVER_TZ_OFFSET, @@ -496,7 +496,7 @@ pub fn start_time_ux(sid: xous::SID) { modals.show_notification(t!("stats.please_mount", xous::LANG), None).expect("couldn't show notification"); continue; } - let mut tz_set_handle = pddb::Pddb::new(); + let tz_set_handle = pddb::Pddb::new(); let mut tz_set = false; let mut tz_offset_ms = 0i64; let maybe_tz_set_key = tz_set_handle.get(