All of lore.kernel.org
 help / color / mirror / Atom feed
* [Virtio-fs] [virtiofsd] MR merged: Replace deprecated MAX with the associated constant on each type
@ 2022-05-05 11:09 virtiofs-bot
  0 siblings, 0 replies; only message in thread
From: virtiofs-bot @ 2022-05-05 11:09 UTC (permalink / raw)
  To: virtio-fs

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-05 11:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05 11:09 [Virtio-fs] [virtiofsd] MR merged: Replace deprecated MAX with the associated constant on each type virtiofs-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.