From 976b67a408f2dc6eaeb0c1c10ba5d717c1bb8cfd Mon Sep 17 00:00:00 2001 From: Nikita Sivukhin Date: Mon, 28 Jul 2025 17:27:52 +0400 Subject: [PATCH] fix clippy --- bindings/rust/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index 19b84ea3d..ee0e0d838 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -179,7 +179,7 @@ impl Connection { .lock() .map_err(|e| Error::MutexError(e.to_string()))?; conn.wal_frame_count() - .map_err(|e| Error::WalOperationError(format!("wal_insert_begin failed: {}", e))) + .map_err(|e| Error::WalOperationError(format!("wal_insert_begin failed: {e}"))) } pub fn wal_insert_begin(&self) -> Result<()> { @@ -188,7 +188,7 @@ impl Connection { .lock() .map_err(|e| Error::MutexError(e.to_string()))?; conn.wal_insert_begin() - .map_err(|e| Error::WalOperationError(format!("wal_insert_begin failed: {}", e))) + .map_err(|e| Error::WalOperationError(format!("wal_insert_begin failed: {e}"))) } pub fn wal_insert_end(&self) -> Result<()> { @@ -197,7 +197,7 @@ impl Connection { .lock() .map_err(|e| Error::MutexError(e.to_string()))?; conn.wal_insert_end() - .map_err(|e| Error::WalOperationError(format!("wal_insert_end failed: {}", e))) + .map_err(|e| Error::WalOperationError(format!("wal_insert_end failed: {e}"))) } pub fn wal_insert_frame(&self, frame_no: u32, frame: &[u8]) -> Result { @@ -206,7 +206,7 @@ impl Connection { .lock() .map_err(|e| Error::MutexError(e.to_string()))?; conn.wal_insert_frame(frame_no, frame) - .map_err(|e| Error::WalOperationError(format!("wal_insert_frame failed: {}", e))) + .map_err(|e| Error::WalOperationError(format!("wal_insert_frame failed: {e}"))) } pub fn wal_get_frame(&self, frame_no: u32, frame: &mut [u8]) -> Result<()> { @@ -215,7 +215,7 @@ impl Connection { .lock() .map_err(|e| Error::MutexError(e.to_string()))?; conn.wal_get_frame(frame_no, frame) - .map_err(|e| Error::WalOperationError(format!("wal_insert_frame failed: {}", e))) + .map_err(|e| Error::WalOperationError(format!("wal_insert_frame failed: {e}"))) } /// Prepare a SQL statement for later execution.