From 66dc39c2a86c2033e20b684ebf779d88838092e2 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 6 Jun 2022 18:25:33 +0800 Subject: [PATCH] pddb sync does not require the handle to be mutable --- services/pddb/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/pddb/src/lib.rs b/services/pddb/src/lib.rs index bc9d4cdc2..7d0ddbbc9 100644 --- a/services/pddb/src/lib.rs +++ b/services/pddb/src/lib.rs @@ -478,7 +478,7 @@ impl Pddb { } } - pub fn sync(&mut self) -> Result<()> { + pub fn sync(&self) -> Result<()> { let response = send_message( self.conn, Message::new_blocking_scalar(Opcode::WriteKeyFlush.to_usize().unwrap(), 0, 0, 0, 0)