diff --git a/src/executor/execute.rs b/src/executor/execute.rs index f316818076..821f7beda6 100644 --- a/src/executor/execute.rs +++ b/src/executor/execute.rs @@ -46,6 +46,8 @@ impl ExecResult { } #[cfg(feature = "mock")] ExecResultHolder::Mock(result) => result.last_insert_id, + #[allow(unreachable_patterns)] + _ => unreachable!(), } } @@ -60,6 +62,8 @@ impl ExecResult { ExecResultHolder::SqlxSqlite(result) => result.rows_affected(), #[cfg(feature = "mock")] ExecResultHolder::Mock(result) => result.rows_affected, + #[allow(unreachable_patterns)] + _ => unreachable!(), } } } diff --git a/src/executor/query.rs b/src/executor/query.rs index 3a842fc01d..63a39be075 100644 --- a/src/executor/query.rs +++ b/src/executor/query.rs @@ -75,6 +75,8 @@ impl fmt::Debug for QueryResultRow { Self::SqlxSqlite(_) => write!(f, "QueryResultRow::SqlxSqlite cannot be inspected"), #[cfg(feature = "mock")] Self::Mock(row) => write!(f, "{:?}", row), + #[allow(unreachable_patterns)] + _ => unreachable!(), } } } @@ -124,6 +126,8 @@ macro_rules! try_getable_all { debug_print!("{:#?}", e.to_string()); TryGetError::Null }), + #[allow(unreachable_patterns)] + _ => unreachable!(), } } } @@ -160,6 +164,8 @@ macro_rules! try_getable_unsigned { debug_print!("{:#?}", e.to_string()); TryGetError::Null }), + #[allow(unreachable_patterns)] + _ => unreachable!(), } } } @@ -193,6 +199,8 @@ macro_rules! try_getable_mysql { debug_print!("{:#?}", e.to_string()); TryGetError::Null }), + #[allow(unreachable_patterns)] + _ => unreachable!(), } } } @@ -236,6 +244,8 @@ macro_rules! try_getable_date_time { debug_print!("{:#?}", e.to_string()); TryGetError::Null }), + #[allow(unreachable_patterns)] + _ => unreachable!(), } } } @@ -315,6 +325,8 @@ impl TryGetable for Decimal { debug_print!("{:#?}", e.to_string()); TryGetError::Null }), + #[allow(unreachable_patterns)] + _ => unreachable!(), } } }