mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
work around rustfmt issue
This commit is contained in:
parent
454ecac95a
commit
9b211d4cb0
1 changed files with 7 additions and 4 deletions
|
|
@ -477,7 +477,10 @@ fn wrapped_main() -> ! {
|
||||||
// other processes from crafting them.
|
// other processes from crafting them.
|
||||||
let pw_sid = xous::create_server().expect("couldn't create a server for the password UX handler");
|
let pw_sid = xous::create_server().expect("couldn't create a server for the password UX handler");
|
||||||
let pw_cid = xous::connect(pw_sid).expect("couldn't connect to the password UX handler");
|
let pw_cid = xous::connect(pw_sid).expect("couldn't connect to the password UX handler");
|
||||||
let pw_handle = thread::spawn({ move || password_ux_manager(xous::connect(pddb_sid).unwrap(), pw_sid) });
|
let pw_handle = thread::spawn({
|
||||||
|
// this comment keeps rustfmt from flattening this block
|
||||||
|
move || password_ux_manager(xous::connect(pddb_sid).unwrap(), pw_sid)
|
||||||
|
});
|
||||||
|
|
||||||
// OS-specific PDDB driver
|
// OS-specific PDDB driver
|
||||||
let mut pddb_os = PddbOs::new(Rc::clone(&entropy), pw_cid);
|
let mut pddb_os = PddbOs::new(Rc::clone(&entropy), pw_cid);
|
||||||
|
|
@ -1738,9 +1741,9 @@ fn wrapped_main() -> ! {
|
||||||
None
|
None
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
Ok((list, _, _)) => list.into_iter().rev().collect(), /* reverse order so Vec can
|
Ok((list, _, _)) => list.into_iter().rev().collect(), /* reverse order so Vec can */
|
||||||
* just pop and get "first"
|
// just pop and get "first"
|
||||||
* item */
|
// item
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
match e.kind() {
|
match e.kind() {
|
||||||
std::io::ErrorKind::NotFound => buf[..4]
|
std::io::ErrorKind::NotFound => buf[..4]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue