mirror of
https://github.com/isar/rusqlite.git
synced 2025-08-20 21:09:31 +08:00
clippy::must_use_candidate
This commit is contained in:
@@ -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,
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user