diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-04-05 13:48:26 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-04-09 12:12:55 +0200 |
| commit | 291c75d10b734d7b118c7232157eefdc342c4144 (patch) | |
| tree | 78861fc2508fc9d5cec08dc29a5005f416f2c079 /src/vtable.rs | |
| parent | fd3be6d4920a2aef5db17f0e4abc90dcf1e14f2d (diff) | |
Enable the rust_2018_idioms and unused_lifetimes lints and fix all warnings
They are set to deny by default in the rust-lang/rust repo
Diffstat (limited to 'src/vtable.rs')
| -rw-r--r-- | src/vtable.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vtable.rs b/src/vtable.rs index d67cc6e865e..8302047a44e 100644 --- a/src/vtable.rs +++ b/src/vtable.rs @@ -166,7 +166,7 @@ fn build_vtable<'tcx>( data_id } -fn write_usize(tcx: TyCtxt, buf: &mut [u8], idx: usize, num: u64) { +fn write_usize(tcx: TyCtxt<'_>, buf: &mut [u8], idx: usize, num: u64) { use byteorder::{BigEndian, LittleEndian, WriteBytesExt}; let usize_size = tcx |
