Skip to content

Commit

Permalink
move to rust 2024 edition
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDGOfficial committed Jul 2, 2024
1 parent 69702cc commit 5e82d2d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cargo-features = ["profile-rustflags"]
cargo-features = ["profile-rustflags", "edition2024"]

[package]
name = "hypixel-skyblock-util-tools"
Expand All @@ -12,7 +12,7 @@ documentation = "https://github.com/TheDGOfficial/hypixel-skyblock-util-tools/"
keywords = ["hypixel skyblock"]
categories = ["command-line-utilities"]

edition = "2021"
edition = "2024"
#TODO bump with every Rust version
rust-version = "1.81.0"
exclude = ["/.github/*"]
Expand Down
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
edition = "2021"
edition = "2024"
unstable_features = true

max_width = 79
Expand Down
2 changes: 1 addition & 1 deletion src/rng_simulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ pub(crate) fn new_rng() -> impl Rng {
#[inline]
#[must_use]
pub(crate) fn rand_f64(rng: &mut impl Rng) -> f64 {
rng.gen()
rng.r#gen()
}

#[inline]
Expand Down

0 comments on commit 5e82d2d

Please sign in to comment.