A Vec of Bits
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Enable some clippy lints

+6 -3
+6 -3
src/lib.rs
··· 85 85 #![doc(html_root_url = "https://docs.rs/bit-vec/0.8.0")] 86 86 #![no_std] 87 87 88 + #![forbid(clippy::shadow_reuse)] 89 + #![forbid(clippy::shadow_same)] 90 + #![forbid(clippy::shadow_unrelated)] 91 + 88 92 #[cfg(any(test, feature = "std"))] 89 93 #[macro_use] 90 94 extern crate std; ··· 1888 1892 1889 1893 impl<'a, B: 'a + BitBlock> IterMut<'a, B> { 1890 1894 fn get(&mut self, index: Option<usize>) -> Option<MutBorrowedBit<'a, B>> { 1891 - let index = index?; 1892 - let value = (*self.vec).borrow().get(index)?; 1895 + let value = (*self.vec).borrow().get(index?)?; 1893 1896 Some(MutBorrowedBit { 1894 1897 vec: self.vec.clone(), 1895 - index, 1898 + index: index?, 1896 1899 #[cfg(debug_assertions)] 1897 1900 old_value: value, 1898 1901 new_value: value,