We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c84ba20 commit 0293407Copy full SHA for 0293407
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