From ba73b8177608105f4dc592a008f6ec337f95c8ed Mon Sep 17 00:00:00 2001 From: gwenn Date: Sat, 8 Oct 2022 18:57:12 +0200 Subject: [PATCH] Fix CI build error stable clippy vs nightly clippy --- src/column.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/column.rs b/src/column.rs index c2167fc..4413a62 100644 --- a/src/column.rs +++ b/src/column.rs @@ -95,7 +95,8 @@ impl Statement<'_> { pub fn column_name(&self, col: usize) -> Result<&str> { self.stmt .column_name(col) - .ok_or_else(|| Error::InvalidColumnIndex(col)) + // clippy::or_fun_call (nightly) vs clippy::unnecessary-lazy-evaluations (stable) + .ok_or(Error::InvalidColumnIndex(col)) .map(|slice| { str::from_utf8(slice.to_bytes()).expect("Invalid UTF-8 sequence in column name") })