Skip to content

Commit

Permalink
Update dependencies and associated updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
sciguyryan committed Jun 5, 2024
1 parent b1ea402 commit 96f838c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ default-members = ["redox-terminal", "redox-core"]
criterion = "0.5.1"
enumflags2 = "0.7.9"
float-cmp = "0.9.0"
hashbrown = "0.14.3"
itertools = "0.12.1"
num-traits = "0.2.17"
num-derive = "0.4.1"
hashbrown = "0.14.5"
itertools = "0.13.0"
num-traits = "0.2.19"
num-derive = "0.4.2"
prettytable = "0.10.0"
rand = "0.8.5"
rand_xoshiro = "0.6.0"
strum = "0.26.1"
strum_macros = "0.26.1"
thiserror = "1.0.56"
strum = "0.26.2"
strum_macros = "0.26.4"
thiserror = "1.0.61"
winres = "0.1.12"

[profile.dev]
Expand Down
2 changes: 1 addition & 1 deletion redox-core/src/com_bus/random_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use super::{

thread_local! {
static PRNG: RefCell<Xoshiro256Plus> = RefCell::new(Xoshiro256Plus::from_entropy());
static CRNG: RefCell<OsRng> = RefCell::new(OsRng);
static CRNG: RefCell<OsRng> = const { RefCell::new(OsRng) };
}

#[derive(PartialEq, Eq)]
Expand Down
4 changes: 1 addition & 3 deletions redox-core/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ const BIT_MASKS_U32: [u32; 32] = [
0x2000000, 0x4000000, 0x8000000, 0x10000000, 0x20000000, 0x40000000, 0x80000000,
];

const BIT_MASKS_U8: [u8; 8] = [
0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80
];
const BIT_MASKS_U8: [u8; 8] = [0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80];

#[inline(always)]
pub fn is_bit_set(value: u32, bit: u8) -> bool {
Expand Down

0 comments on commit 96f838c

Please sign in to comment.