Skip to content

Commit a72f83d

Browse files
authored
Merge pull request #781
Fix lint warnings. Add env CARGO_NET_GIT_FETCH_WITH_CLI=true to avoid CI failure for rust 1.45.0 build.
2 parents 70539f2 + 0eb962d commit a72f83d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: ["master"]
66
pull_request:
77

8+
env:
9+
CARGO_NET_GIT_FETCH_WITH_CLI: true
10+
811
jobs:
912
Test:
1013
strategy:

idna/tests/uts46.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
use crate::test::TestFn;
1010
use std::char;
11+
use std::fmt::Write;
1112

1213
use idna::Errors;
1314

@@ -160,8 +161,8 @@ fn unescape(input: &str) -> String {
160161
match char::from_u32(((c1 * 16 + c2) * 16 + c3) * 16 + c4) {
161162
Some(c) => output.push(c),
162163
None => {
163-
output
164-
.push_str(&format!("\\u{:X}{:X}{:X}{:X}", c1, c2, c3, c4));
164+
write!(&mut output, "\\u{:X}{:X}{:X}{:X}", c1, c2, c3, c4)
165+
.expect("Could not write to output");
165166
}
166167
};
167168
}

url/tests/data.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fn setters_tests() {
149149
let mut url = Url::parse(&href).unwrap();
150150
let comment_ref = comment.as_deref();
151151
passed &= check_invariants(&url, &name, comment_ref);
152-
let _ = set(&mut url, attr, &new_value);
152+
set(&mut url, attr, &new_value);
153153

154154
for attr in ATTRIBS {
155155
if let Some(value) = expected.take_key(attr) {

0 commit comments

Comments
 (0)