Skip to content
This repository was archived by the owner on Jul 11, 2021. It is now read-only.

Commit f86ac2e

Browse files
committed
clippy
1 parent 667768f commit f86ac2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

redisql_lib/src/community_statement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ impl<'a> StatementTrait<'a> for Statement {
233233

234234
impl<'a> StatementTrait<'a> for MultiStatement {
235235
fn reset(&self) {
236-
self.stmts.iter().map(|stmt| stmt.reset()).count();
236+
self.stmts.iter().map(StatementTrait::reset).count();
237237
}
238238
fn execute(&self) -> Result<Cursor, SQLite3Error> {
239239
let db = self.db.clone();

src/commands.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -972,12 +972,12 @@ pub extern "C" fn MakeCopy(
972972
)
973973
.unwrap();
974974
STATISTICS.copy_err();
975-
return unsafe {
975+
unsafe {
976976
r::rm::ffi::RedisModule_ReplyWithError.unwrap()(
977977
context.as_ptr(),
978978
error.as_ptr(),
979979
)
980-
};
980+
}
981981
}
982982
}
983983
}

0 commit comments

Comments
 (0)