clippy::must_use_candidate

This commit is contained in:
gwenn
2022-01-05 19:40:31 +01:00
committed by Thom Chiovoloni
parent bcfe99578b
commit 406ac6a7fc
12 changed files with 36 additions and 0 deletions

View File

@@ -129,6 +129,7 @@ where
impl Value {
/// Returns SQLite fundamental datatype.
#[inline]
#[must_use]
pub fn data_type(&self) -> Type {
match *self {
Value::Null => Type::Null,

View File

@@ -22,6 +22,7 @@ pub enum ValueRef<'a> {
impl ValueRef<'_> {
/// Returns SQLite fundamental datatype.
#[inline]
#[must_use]
pub fn data_type(&self) -> Type {
match *self {
ValueRef::Null => Type::Null,