diff options
| author | Jeremy Stucki <jeremy@myelin.ch> | 2019-06-21 20:27:44 +0200 |
|---|---|---|
| committer | Jeremy Stucki <stucki.jeremy@gmail.com> | 2019-07-03 10:01:02 +0200 |
| commit | ec711767a7ac6911faae85d4b9285d07d5ebf949 (patch) | |
| tree | 0eef0150e8781741914dd5f0821d810f602160cc /src/librustc_data_structures | |
| parent | d50a3a7b8696975a2a1116f8c4eb4673271ae968 (diff) | |
| download | rust-ec711767a7ac6911faae85d4b9285d07d5ebf949.tar.gz rust-ec711767a7ac6911faae85d4b9285d07d5ebf949.zip | |
Remove needless lifetimes
Diffstat (limited to 'src/librustc_data_structures')
| -rw-r--r-- | src/librustc_data_structures/bit_set.rs | 4 | ||||
| -rw-r--r-- | src/librustc_data_structures/fingerprint.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_data_structures/bit_set.rs b/src/librustc_data_structures/bit_set.rs index 5d8388d89f5..1eb28bccbe3 100644 --- a/src/librustc_data_structures/bit_set.rs +++ b/src/librustc_data_structures/bit_set.rs @@ -168,7 +168,7 @@ impl<T: Idx> BitSet<T> { /// Iterates over the indices of set bits in a sorted order. #[inline] - pub fn iter<'a>(&'a self) -> BitIter<'a, T> { + pub fn iter(&self) -> BitIter<'_, T> { BitIter { cur: None, iter: self.words.iter().enumerate(), @@ -849,7 +849,7 @@ impl<R: Idx, C: Idx> BitMatrix<R, C> { /// Iterates through all the columns set to true in a given row of /// the matrix. - pub fn iter<'a>(&'a self, row: R) -> BitIter<'a, C> { + pub fn iter(&self, row: R) -> BitIter<'_, C> { assert!(row.index() < self.num_rows); let (start, end) = self.range(row); BitIter { diff --git a/src/librustc_data_structures/fingerprint.rs b/src/librustc_data_structures/fingerprint.rs index 7975c62b90f..3bea965ef30 100644 --- a/src/librustc_data_structures/fingerprint.rs +++ b/src/librustc_data_structures/fingerprint.rs @@ -58,7 +58,7 @@ impl Fingerprint { Ok(()) } - pub fn decode_opaque<'a>(decoder: &mut Decoder<'a>) -> Result<Fingerprint, String> { + pub fn decode_opaque(decoder: &mut Decoder<'_>) -> Result<Fingerprint, String> { let mut bytes = [0; 16]; decoder.read_raw_bytes(&mut bytes)?; |
