Fix clippy warnings (#959)

Fix clippy warnings
This commit is contained in:
gwenn
2021-05-13 08:58:46 +02:00
committed by GitHub
parent e7bb33a99c
commit 1985e78fa6
6 changed files with 9 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ impl Session<'_> {
db: &'conn Connection,
name: DatabaseName<'_>,
) -> Result<Session<'conn>> {
let name = name.to_cstring()?;
let name = name.as_cstring()?;
let db = db.db.borrow_mut().db;
@@ -161,7 +161,7 @@ impl Session<'_> {
/// Load the difference between tables.
pub fn diff(&mut self, from: DatabaseName<'_>, table: &str) -> Result<()> {
let from = from.to_cstring()?;
let from = from.as_cstring()?;
let table = str_to_cstring(table)?;
let table = table.as_ptr();
unsafe {