Skip to content

Replace deprecated MAX with the associated constant on each type

German Maglione requested to merge ghm-virtio-fs/virtiofsd:fix-depr into main

Replace the deprecated form of std::::MAX with the associated MAX constant on each type ::MAX. For instance:

// deprecated way
let max = std::usize::MAX;

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

See https://doc.rust-lang.org/core/usize/constant.MAX.html

Merge request reports