Skip to content

Commit 05e03eb

Browse files
committed
Migrate to Rust Edition 2024. Update all dependencies to their latest version.
1 parent 1782305 commit 05e03eb

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

.clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
msrv = "1.81.0"
1+
msrv = "1.85.0"

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "byte-transcoder"
3-
version = "0.0.2"
4-
edition = "2021"
5-
rust-version = "1.81"
3+
version = "0.0.3"
4+
edition = "2024"
5+
rust-version = "1.85"
66
authors = ["Todd Everett Griffin <tgriffin115@gmail.com>"]
77
repository = "https://github.com/goddtriffin/byte-transcoder-rs"
88
homepage = "https://www.toddgriffin.me/"
@@ -36,4 +36,4 @@ pedantic = { level = "deny", priority = -1 }
3636
cargo = { level = "deny", priority = -1 }
3737

3838
[dependencies]
39-
uuid = "1.10.0"
39+
uuid = "1.14.0"

src/reader_error.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,10 @@ impl fmt::Display for ByteReaderError {
2626
f,
2727
"Attempted to read past the end of the buffer. Index Offset: '{index_offset}', Buffer Length: '{buffer_length}'.",
2828
),
29-
ByteReaderError::SliceConversionFailure => write!(
30-
f,
31-
"Failed to convert slice to a fixed-size array."
32-
),
33-
ByteReaderError::InvalidUtf8 => write!(
34-
f,
35-
"Attempted to read invalid UTF-8 bytes."
36-
),
29+
ByteReaderError::SliceConversionFailure => {
30+
write!(f, "Failed to convert slice to a fixed-size array.")
31+
}
32+
ByteReaderError::InvalidUtf8 => write!(f, "Attempted to read invalid UTF-8 bytes."),
3733
}
3834
}
3935
}

0 commit comments

Comments
 (0)