Skip to content

Commit 7377a57

Browse files
committed
Even more CI
1 parent d367346 commit 7377a57

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

url/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2952,10 +2952,9 @@ fn path_to_file_url_segments(
29522952
path_to_file_url_segments_windows(path, serialization)
29532953
}
29542954

2955-
#[cfg(feature = "std")]
29562955
// Build this unconditionally to alleviate https://github.com/servo/rust-url/issues/102
2957-
#[cfg_attr(not(windows), allow(dead_code))]
29582956
#[cfg(feature = "std")]
2957+
#[cfg_attr(not(windows), allow(dead_code))]
29592958
fn path_to_file_url_segments_windows(
29602959
path: &Path,
29612960
serialization: &mut String,

url/src/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ impl<'a> Parser<'a> {
11141114
while let (Some(c), remaining) = input.split_first() {
11151115
if let Some(digit) = c.to_digit(10) {
11161116
port = port * 10 + digit;
1117-
if port > core::u16::MAX as u32 {
1117+
if port > u16::MAX as u32 {
11181118
return Err(ParseError::InvalidPort);
11191119
}
11201120
has_any_digit = true;
@@ -1595,7 +1595,7 @@ pub fn ascii_alpha(ch: char) -> bool {
15951595

15961596
#[inline]
15971597
pub fn to_u32(i: usize) -> ParseResult<u32> {
1598-
if i <= core::u32::MAX as usize {
1598+
if i <= u32::MAX as usize {
15991599
Ok(i as u32)
16001600
} else {
16011601
Err(ParseError::Overflow)

0 commit comments

Comments
 (0)