Skip to content

Commit 4927296

Browse files
committed
fix clippy::unnested-or-patterns warning
1 parent 52dfa76 commit 4927296

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ lint-rust:
8989
-A clippy::struct-excessive-bools \
9090
-A clippy::too-many-lines \
9191
-A clippy::unnecessary-wraps \
92-
-A clippy::unnested-or-patterns \
9392
-A clippy::unused-self \
9493
-A clippy::used-underscore-binding
9594

src/serializers/shared.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ impl CombinedSerializer {
177177
.map_err(|err| py_schema_error_type!("Error building `function-wrap` serializer:\n {}", err));
178178
}
179179
// applies to lists tuples and dicts, does not override the main schema `type`
180-
Some("include-exclude-sequence") | Some("include-exclude-dict") => (),
180+
Some("include-exclude-sequence" | "include-exclude-dict") => (),
181181
// applies specifically to bytes, does not override the main schema `type`
182182
Some("base64") => (),
183183
Some(ser_type) => {

src/validators/url.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ fn parse_multihost_url<'url, 'input>(
334334
loop {
335335
let peek = chars.peek();
336336
match peek {
337-
Some(&'/') | Some(&'\\') => {
337+
Some(&'/' | &'\\') => {
338338
chars.next();
339339
}
340340
_ => break,

0 commit comments

Comments
 (0)