Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed Sep 24, 2024
1 parent e30b37c commit 408af11
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scylla-macros/src/from_row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,11 @@ pub(crate) fn from_row_derive(tokens_input: TokenStream) -> Result<TokenStream,
use #path::{CqlValue, FromCqlVal, FromRow, FromRowError};
use ::std::result::Result::{Ok, Err};
use ::std::convert::TryInto;
use ::std::clone::Clone;
use ::std::option::Option;
use ::std::iter::{Iterator, IntoIterator};


let row_columns_len = row.columns.len();
let mut row_columns: [Option<CqlValue>; #fields_count] = row.columns.try_into().map_err(|_| FromRowError::WrongRowSize {
let mut row_columns: [_; #fields_count] = row.columns.try_into().map_err(|_| FromRowError::WrongRowSize {
expected: #fields_count,
actual: row_columns_len,
})?;
Expand Down

0 comments on commit 408af11

Please sign in to comment.