diff --git a/services/shellchat/src/cmds/pddb_cmd.rs b/services/shellchat/src/cmds/pddb_cmd.rs index 0726905b8..762d14f6b 100644 --- a/services/shellchat/src/cmds/pddb_cmd.rs +++ b/services/shellchat/src/cmds/pddb_cmd.rs @@ -219,7 +219,7 @@ impl<'a> ShellCmdApi<'a> for PddbCmd { "test" => { let bname = tokens.next(); // zero-length key test - let mut test_handle = pddb::Pddb::new(); + let test_handle = pddb::Pddb::new(); // build a key, but don't write to it. let _ = test_handle.get( "test", @@ -254,7 +254,7 @@ impl<'a> ShellCmdApi<'a> for PddbCmd { log::info!("finished dict delete with zero-length key"); // seek test - a bunch of terrible, handcrafted test cases to exercise Start, Current, End cases of seeking. - let mut test_handle = pddb::Pddb::new(); + let test_handle = pddb::Pddb::new(); // build a key, but don't write to it. let mut seekwrite = test_handle.get( "test", diff --git a/xous-rs/src/services/nameserver.rs b/xous-rs/src/services/nameserver.rs index ec7b3dc12..e37a6e649 100644 --- a/xous-rs/src/services/nameserver.rs +++ b/xous-rs/src/services/nameserver.rs @@ -53,6 +53,7 @@ impl ConnectRequest { } } +/// Request a connection to the nameserver-managed `name`. pub fn connect(name: &str) -> Option { let mut request = ConnectRequest::new(name)?; let ns_cid = nameserver(); @@ -96,6 +97,7 @@ pub fn connect(name: &str) -> Option { } } +/// Return the connection ID of the nameserver pub(crate) fn nameserver() -> crate::CID { static NAMESERVER_CID: AtomicU32 = AtomicU32::new(0);