[Virtio-fs] [virtiofsd] MR merged: Replace deprecated MAX with the associated constant on each type

virtiofs-bot at sinrega.org virtiofs-bot at sinrega.org
Thu May 5 11:09:48 UTC 2022


Replace the deprecated form of std::<type>::MAX with the associated MAX constant on each type <type>::MAX.
For instance:
```rust
// deprecated way
let max = std::usize::MAX;

// intended way
let max = usize::MAX;
```

See https://doc.rust-lang.org/core/usize/constant.MAX.html
---
https://gitlab.com/virtio-fs/virtiofsd/-/merge_requests/112



More information about the Virtio-fs mailing list