Skip to content

Commit e76c0e7

Browse files
minor: bump clippy to 1.89 (#594)
1 parent 062c499 commit e76c0e7

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.evergreen/check-clippy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -o errexit
55
. ~/.cargo/env
66

77
# Pin clippy to the latest version. This should be updated when new versions of Rust are released.
8-
CLIPPY_VERSION=1.83.0
8+
CLIPPY_VERSION=1.89.0
99

1010
rustup install $CLIPPY_VERSION
1111

src/bson.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ impl Bson {
789789
/// Method for converting a given [`Bson`] value to a [`serde::de::Unexpected`] for error
790790
/// reporting.
791791
#[cfg(feature = "serde")]
792-
pub(crate) fn as_unexpected(&self) -> serde::de::Unexpected {
792+
pub(crate) fn as_unexpected(&self) -> serde::de::Unexpected<'_> {
793793
use serde::de::Unexpected;
794794
match self {
795795
Bson::Array(_) => Unexpected::Seq,

src/document.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ impl Document {
218218
}
219219

220220
/// Returns an iterator over the contents of the document.
221-
pub fn iter(&self) -> Iter {
221+
pub fn iter(&self) -> Iter<'_> {
222222
self.into_iter()
223223
}
224224

225225
/// Returns an iterator over mutable references to the contents of the document.
226-
pub fn iter_mut(&mut self) -> IterMut {
226+
pub fn iter_mut(&mut self) -> IterMut<'_> {
227227
IterMut {
228228
inner: self.inner.iter_mut(),
229229
}
@@ -629,14 +629,14 @@ impl Document {
629629
}
630630

631631
/// Returns an iterator over the keys in the document.
632-
pub fn keys(&self) -> Keys {
632+
pub fn keys(&self) -> Keys<'_> {
633633
Keys {
634634
inner: self.inner.keys(),
635635
}
636636
}
637637

638638
/// Returns an iterator over the values in the document.
639-
pub fn values(&self) -> Values {
639+
pub fn values(&self) -> Values<'_> {
640640
Values {
641641
inner: self.inner.values(),
642642
}
@@ -666,7 +666,7 @@ impl Document {
666666
}
667667

668668
/// Returns an [`Entry`] for the given key.
669-
pub fn entry(&mut self, k: impl Into<String>) -> Entry {
669+
pub fn entry(&mut self, k: impl Into<String>) -> Entry<'_> {
670670
match self.inner.entry(k.into()) {
671671
indexmap::map::Entry::Occupied(o) => Entry::Occupied(OccupiedEntry { inner: o }),
672672
indexmap::map::Entry::Vacant(v) => Entry::Vacant(VacantEntry { inner: v }),

src/raw/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ impl RawArray {
213213
/// view onto the array but do not parse out or construct
214214
/// values until the `.value()` or `.try_into()` methods are
215215
/// called.
216-
pub fn iter_elements(&self) -> RawIter {
216+
pub fn iter_elements(&self) -> RawIter<'_> {
217217
RawIter::new(&self.doc)
218218
}
219219
}

0 commit comments

Comments
 (0)