Skip to content

Commit 09d064d

Browse files
minor: bump clippy version to 1.83.0 (#1263)
1 parent 78df02f commit 09d064d

35 files changed

+57
-52
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
source ./.evergreen/env.sh
66

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

1010
rustup install $CLIPPY_VERSION
1111

src/action.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl<'a> CollRef<'a> {
127127
}
128128
}
129129

130-
impl<'a> Deref for CollRef<'a> {
130+
impl Deref for CollRef<'_> {
131131
type Target = Collection<Document>;
132132

133133
fn deref(&self) -> &Self::Target {

src/action/aggregate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub struct Aggregate<'a, Session = ImplicitSession, T = Document> {
111111
_phantom: PhantomData<T>,
112112
}
113113

114-
impl<'a, Session, T> Aggregate<'a, Session, T> {
114+
impl<Session, T> Aggregate<'_, Session, T> {
115115
option_setters!(options: AggregateOptions;
116116
allow_disk_use: bool,
117117
batch_size: u32,
@@ -230,7 +230,7 @@ enum AggregateTargetRef<'a> {
230230
Collection(CollRef<'a>),
231231
}
232232

233-
impl<'a> AggregateTargetRef<'a> {
233+
impl AggregateTargetRef<'_> {
234234
fn target(&self) -> AggregateTarget {
235235
match self {
236236
Self::Collection(cr) => AggregateTarget::Collection(cr.namespace()),

src/action/count.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub struct EstimatedDocumentCount<'a> {
9191
options: Option<EstimatedDocumentCountOptions>,
9292
}
9393

94-
impl<'a> EstimatedDocumentCount<'a> {
94+
impl EstimatedDocumentCount<'_> {
9595
option_setters!(options: EstimatedDocumentCountOptions;
9696
max_time: std::time::Duration,
9797
selection_criteria: crate::selection_criteria::SelectionCriteria,

src/action/csfle/create_data_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub struct DataKeyOptions {
4242
pub key_material: Option<Vec<u8>>,
4343
}
4444

45-
impl<'a> CreateDataKey<'a> {
45+
impl CreateDataKey<'_> {
4646
option_setters! { options: DataKeyOptions;
4747
key_alt_names: Vec<String>,
4848
key_material: Vec<u8>,

src/action/csfle/create_encrypted_collection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl ClientEncryption {
2323
db: &'a Database,
2424
name: &'a str,
2525
master_key: MasterKey,
26-
) -> CreateEncryptedCollection {
26+
) -> CreateEncryptedCollection<'a> {
2727
CreateEncryptedCollection {
2828
client_enc: self,
2929
db,
@@ -45,7 +45,7 @@ pub struct CreateEncryptedCollection<'a> {
4545
options: Option<CreateCollectionOptions>,
4646
}
4747

48-
impl<'a> CreateEncryptedCollection<'a> {
48+
impl CreateEncryptedCollection<'_> {
4949
option_setters!(options: CreateCollectionOptions;
5050
capped: bool,
5151
size: u64,

src/action/csfle/encrypt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,14 @@ pub struct RangeOptions {
142142
pub precision: Option<i32>,
143143
}
144144

145-
impl<'a, Mode> Encrypt<'a, Mode> {
145+
impl<Mode> Encrypt<'_, Mode> {
146146
option_setters!(options: EncryptOptions;
147147
contention_factor: i64,
148148
range_options: RangeOptions,
149149
);
150150
}
151151

152-
impl<'a> Encrypt<'a, Value> {
152+
impl Encrypt<'_, Value> {
153153
/// Set the [`EncryptOptions::query_type`] option.
154154
pub fn query_type(mut self, value: impl Into<String>) -> Self {
155155
self.options().query_type = Some(value.into());

src/action/gridfs/download.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ pub struct OpenDownloadStreamByName<'a> {
151151
options: Option<GridFsDownloadByNameOptions>,
152152
}
153153

154-
impl<'a> OpenDownloadStreamByName<'a> {
154+
impl OpenDownloadStreamByName<'_> {
155155
option_setters! { options: GridFsDownloadByNameOptions;
156156
revision: i32,
157157
}

src/action/gridfs/find.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub struct Find<'a> {
6868
options: Option<GridFsFindOptions>,
6969
}
7070

71-
impl<'a> Find<'a> {
71+
impl Find<'_> {
7272
option_setters! { options: GridFsFindOptions;
7373
allow_disk_use: bool,
7474
batch_size: u32,
@@ -102,7 +102,7 @@ pub struct FindOne<'a> {
102102
options: Option<GridFsFindOneOptions>,
103103
}
104104

105-
impl<'a> FindOne<'a> {
105+
impl FindOne<'_> {
106106
option_setters! { options: GridFsFindOneOptions;
107107
max_time: Duration,
108108
skip: u64,

src/action/gridfs/upload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub struct OpenUploadStream<'a> {
4646
options: Option<GridFsUploadOptions>,
4747
}
4848

49-
impl<'a> OpenUploadStream<'a> {
49+
impl OpenUploadStream<'_> {
5050
/// Set the value to be used for the corresponding [`FilesCollectionDocument`]'s `id`
5151
/// field. If not set, a unique [`ObjectId`] will be generated that can be accessed via the
5252
/// stream's [`id`](GridFsUploadStream::id) method.

0 commit comments

Comments
 (0)