mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix warnings that result from the PDDB mutability change
This commit is contained in:
parent
bf535bd0e1
commit
9ee306315e
2 changed files with 4 additions and 4 deletions
|
|
@ -84,7 +84,7 @@ impl<'a> ShellCmdApi<'a> for Wlan {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
"save" => {
|
"save" => {
|
||||||
let mut pddb = pddb::Pddb::new();
|
let pddb = pddb::Pddb::new();
|
||||||
if let Some(ssid) = &self.current_ssid {
|
if let Some(ssid) = &self.current_ssid {
|
||||||
if let Some(pass) = &self.current_pass {
|
if let Some(pass) = &self.current_pass {
|
||||||
match pddb.get(
|
match pddb.get(
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,7 @@ pub fn start_time_server() {
|
||||||
}
|
}
|
||||||
// once the PDDB is mounted, read in the time zone offsets and then restart the
|
// once the PDDB is mounted, read in the time zone offsets and then restart the
|
||||||
// loop handler using the offsets.
|
// loop handler using the offsets.
|
||||||
let mut offset_handle = Pddb::new();
|
let offset_handle = Pddb::new();
|
||||||
let mut offset_key = offset_handle.get(
|
let mut offset_key = offset_handle.get(
|
||||||
TIME_SERVER_DICT,
|
TIME_SERVER_DICT,
|
||||||
TIME_SERVER_UTC_OFFSET,
|
TIME_SERVER_UTC_OFFSET,
|
||||||
|
|
@ -249,7 +249,7 @@ pub fn start_time_server() {
|
||||||
Some(8),
|
Some(8),
|
||||||
None::<fn()>
|
None::<fn()>
|
||||||
).expect("couldn't open UTC offset key");
|
).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(
|
let mut tz_key = tz_handle.get(
|
||||||
TIME_SERVER_DICT,
|
TIME_SERVER_DICT,
|
||||||
TIME_SERVER_TZ_OFFSET,
|
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");
|
modals.show_notification(t!("stats.please_mount", xous::LANG), None).expect("couldn't show notification");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
let mut tz_set_handle = pddb::Pddb::new();
|
let tz_set_handle = pddb::Pddb::new();
|
||||||
let mut tz_set = false;
|
let mut tz_set = false;
|
||||||
let mut tz_offset_ms = 0i64;
|
let mut tz_offset_ms = 0i64;
|
||||||
let maybe_tz_set_key = tz_set_handle.get(
|
let maybe_tz_set_key = tz_set_handle.get(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue