build: specify clippy denies in cargo config (#1351)

* build: specify clippy denies in cargo config

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* deny implicit clone

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2023-04-11 17:48:52 +08:00
committed by GitHub
parent d5f0ba4ad9
commit 6b6617f9cb
16 changed files with 33 additions and 23 deletions

View File

@@ -78,7 +78,7 @@ impl FromRow for MysqlTextRow {
let value = if let Some(mysql_value) = row.as_ref(i) {
match mysql_value {
MysqlValue::NULL => Value::Null,
MysqlValue::Bytes(v) => Value::from(v.to_vec()),
MysqlValue::Bytes(v) => Value::from(v.clone()),
_ => unreachable!(),
}
} else {