From 5337d34d45f65de540c7493fbda21812c345138c Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 1 Jun 2022 00:32:49 +0800 Subject: [PATCH] fix warnings in hosted mode --- services/shellchat/src/cmds/pddb_cmd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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",