Skip to content

Commit

Permalink
Bump clippy to 1.75.0 and adapt codebase to latest rules
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jan 27, 2024
1 parent 401557b commit 688c686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ workflows:
matrix:
parameters:
# Run with MSRV and some modern stable Rust
rust-version: ["1.70.0", "1.73.0"]
rust-version: ["1.70.0", "1.75.0"]
- libwasmvm_audit
- format-go
- wasmvm_no_cgo
Expand Down
4 changes: 2 additions & 2 deletions libwasmvm/src/error/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,8 @@ mod tests {

#[test]
fn from_std_str_utf8error_works() {
let broken = b"Hello \xF0\x90\x80World";
let error: RustError = str::from_utf8(broken).unwrap_err().into();
let broken = Vec::from(b"Hello \xF0\x90\x80World" as &[u8]);
let error: RustError = str::from_utf8(&broken).unwrap_err().into();
match error {
RustError::InvalidUtf8 { msg, .. } => {
assert_eq!(msg, "invalid utf-8 sequence of 3 bytes from index 6")
Expand Down

0 comments on commit 688c686

Please sign in to comment.