Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix rand 0.10 API usage in literal crate test
Change from rand::Rng to rand::RngExt to match rand 0.10 API where the
random() method is provided by RngExt trait instead of Rng trait.

Co-authored-by: youknowone <[email protected]>
  • Loading branch information
Copilot and youknowone committed Feb 17, 2026
commit 214eeb45365c4b81cb31e1a9dd4bcd5683d52b81
2 changes: 1 addition & 1 deletion crates/literal/src/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ pub fn to_hex(value: f64) -> String {

#[test]
fn test_to_hex() {
use rand::Rng;
use rand::RngExt;
for _ in 0..20000 {
let bytes = rand::rng().random::<u64>();
let f = f64::from_bits(bytes);
Expand Down
Loading