Skip to content

Commit

Permalink
Merge pull request #218 from muzarski/clippy-1.84-fix
Browse files Browse the repository at this point in the history
clippy: fix clippy 0.1.84 lints
  • Loading branch information
muzarski authored Jan 21, 2025
2 parents e61b1f6 + 3b99c56 commit 651e591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scylla-rust-wrapper/src/argconv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub fn str_to_arr<const N: usize>(s: &str) -> [c_char; N] {
let mut result = ['\0' as c_char; N];

// Max length must be null-terminated
let mut max_len = min(N - 1, s.as_bytes().len());
let mut max_len = min(N - 1, s.len());

while !s.is_char_boundary(max_len) {
max_len -= 1;
Expand Down

0 comments on commit 651e591

Please sign in to comment.