Skip to content

Commit f68db35

Browse files
generatedunixname1726391448346071meta-codesync[bot]
authored andcommitted
Fix clippy::legacy_numeric_constants lint in fbcode/hermetic_infra/reverie
Reviewed By: diliop Differential Revision: D99650925 fbshipit-source-id: 3fc21ea2f1525fef85105084d2889fb2711f9896
1 parent f24a0e2 commit f68db35

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

safeptrace/src/memory.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,10 @@ mod test {
308308
// 100 which is far too small. Here, we use 4 pages in size.
309309
//
310310
// FIXME: Because of the issue [1], u8::arbitrary() only ever generates
311-
// zeros when size % u8::max_value() == 0.
311+
// zeros when size % u8::MAX == 0.
312312
//
313313
// [1] https://github.com/BurntSushi/quickcheck/issues/119
314-
let mut qc =
315-
QuickCheck::new().r#gen(quickcheck::Gen::new(0x4000 + u8::max_value() as usize));
314+
let mut qc = QuickCheck::new().r#gen(quickcheck::Gen::new(0x4000 + u8::MAX as usize));
316315

317316
qc.quickcheck(prop_remote_read_exact as fn(Vec<u8>) -> bool);
318317

0 commit comments

Comments
 (0)