Skip to content

Commit d367346

Browse files
committed
fix CI
1 parent 027e1c7 commit d367346

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,14 @@ jobs:
5757
matrix.rust != '1.56.0'
5858
run: cargo test --test debugger_visualizer --features "url/debugger_visualizer,url_debug_tests/debugger_visualizer" -- --test-threads=1
5959
- name: Test `no_std` support
60-
run: cargo test --no-default-features --features=alloc,no_std_net
60+
run: cargo test --no-default-features --features=alloc
6161
- name: Build `url` crate for `aarch64-unknown-none` with `no_std`
6262
if: |
6363
matrix.os == 'ubuntu-latest' &&
6464
matrix.rust == 'nightly'
6565
run: >
6666
cd url
67-
&& cargo +nightly check -Zbuild-std=core,alloc --target aarch64-unknown-none -v --release --no-default-features --features=alloc,unstable
68-
&& cargo +nightly check -Zbuild-std=core,alloc --target aarch64-unknown-none -v --release --no-default-features --features=alloc,no_std_net
67+
&& cargo +nightly check -Zbuild-std=core,alloc --target aarch64-unknown-none -v --release --no-default-features --features=alloc
6968
7069
WASM:
7170
runs-on: ubuntu-latest

url/src/host.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
// option. This file may not be copied, modified, or distributed
77
// except according to those terms.
88

9+
use crate::net::{Ipv4Addr, Ipv6Addr};
910
use alloc::borrow::ToOwned;
1011
use alloc::string::String;
1112
use alloc::string::ToString;
1213
use alloc::vec::Vec;
1314
use core::cmp;
1415
use core::fmt::{self, Formatter};
15-
use crate::net::{Ipv4Addr, Ipv6Addr};
1616

1717
use percent_encoding::{percent_decode, utf8_percent_encode, CONTROLS};
1818
#[cfg(feature = "serde")]

url/src/lib.rs

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -166,27 +166,25 @@ extern crate serde;
166166

167167
use crate::host::HostInternal;
168168

169-
use crate::parser::{
170-
to_u32, Context, Parser, SchemeType, USERINFO,
171-
};
172-
use percent_encoding::utf8_percent_encode;
173-
use core::borrow::Borrow;
174-
use core::fmt::Write;
175-
#[cfg(feature = "std")]
176-
#[cfg(any(unix, windows, target_os = "redox", target_os = "wasi"))]
177-
use std::io;
178-
use core::{cmp, fmt, hash, mem};
179169
use crate::net::IpAddr;
180170
#[cfg(feature = "std")]
181171
#[cfg(any(unix, windows, target_os = "redox", target_os = "wasi"))]
182172
use crate::net::{SocketAddr, ToSocketAddrs};
183-
use core::ops::{Range, RangeFrom, RangeTo};
173+
use crate::parser::{to_u32, Context, Parser, SchemeType, USERINFO};
174+
use alloc::borrow::ToOwned;
184175
use alloc::str;
185176
use alloc::string::{String, ToString};
186-
use alloc::borrow::ToOwned;
177+
use core::borrow::Borrow;
178+
use core::convert::TryFrom;
179+
use core::fmt::Write;
180+
use core::ops::{Range, RangeFrom, RangeTo};
181+
use core::{cmp, fmt, hash, mem};
182+
use percent_encoding::utf8_percent_encode;
183+
#[cfg(feature = "std")]
184+
#[cfg(any(unix, windows, target_os = "redox", target_os = "wasi"))]
185+
use std::io;
187186
#[cfg(feature = "std")]
188187
use std::path::{Path, PathBuf};
189-
use core::convert::TryFrom;
190188

191189
/// `std` version of `net`
192190
#[cfg(feature = "std")]

0 commit comments

Comments
 (0)