We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c84ba20 + 0293407 commit 224ad8bCopy full SHA for 224ad8b
Cargo.toml
@@ -31,3 +31,6 @@ mmio = []
31
nightly = []
32
pci = ["dep:pci_types"]
33
zerocopy = ["dep:zerocopy", "dep:zerocopy-derive", "endian-num/zerocopy"]
34
+
35
+[lints.rust]
36
+rust_2018_idioms = "warn"
src/bitflags.rs
@@ -84,7 +84,7 @@ macro_rules! virtio_bitflags {
84
macro_rules! impl_fmt {
85
($Trait:ident for $SelfT:ty) => {
86
impl ::core::fmt::$Trait for $SelfT {
87
- fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
+ fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
88
self.0.fmt(f)
89
}
90
0 commit comments