Skip to content

Commit 06b790a

Browse files
committed
Fix clippy warnings
1 parent e385083 commit 06b790a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

url/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2083,7 +2083,7 @@ impl Url {
20832083
/// # }
20842084
/// # run().unwrap();
20852085
/// ```
2086-
#[allow(clippy::clippy::result_unit_err)]
2086+
#[allow(clippy::result_unit_err, clippy::suspicious_operation_groupings)]
20872087
pub fn set_scheme(&mut self, scheme: &str) -> Result<(), ()> {
20882088
let mut parser = Parser::for_setter(String::new());
20892089
let remaining = parser.parse_scheme(parser::Input::new(scheme))?;

url/tests/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ fn eprint_failure(err: String, name: &str, comment: Option<&str>) {
223223
if let Some(comment) = comment {
224224
eprintln!("{}\n", comment);
225225
} else {
226-
eprintln!("");
226+
eprintln!();
227227
}
228228
}
229229

0 commit comments

Comments
 (0)