File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2952,10 +2952,9 @@ fn path_to_file_url_segments(
2952
2952
path_to_file_url_segments_windows ( path, serialization)
2953
2953
}
2954
2954
2955
- #[ cfg( feature = "std" ) ]
2956
2955
// Build this unconditionally to alleviate https://github.com/servo/rust-url/issues/102
2957
- #[ cfg_attr( not( windows) , allow( dead_code) ) ]
2958
2956
#[ cfg( feature = "std" ) ]
2957
+ #[ cfg_attr( not( windows) , allow( dead_code) ) ]
2959
2958
fn path_to_file_url_segments_windows (
2960
2959
path : & Path ,
2961
2960
serialization : & mut String ,
Original file line number Diff line number Diff line change @@ -1114,7 +1114,7 @@ impl<'a> Parser<'a> {
1114
1114
while let ( Some ( c) , remaining) = input. split_first ( ) {
1115
1115
if let Some ( digit) = c. to_digit ( 10 ) {
1116
1116
port = port * 10 + digit;
1117
- if port > core :: u16:: MAX as u32 {
1117
+ if port > u16:: MAX as u32 {
1118
1118
return Err ( ParseError :: InvalidPort ) ;
1119
1119
}
1120
1120
has_any_digit = true ;
@@ -1595,7 +1595,7 @@ pub fn ascii_alpha(ch: char) -> bool {
1595
1595
1596
1596
#[ inline]
1597
1597
pub fn to_u32 ( i : usize ) -> ParseResult < u32 > {
1598
- if i <= core :: u32:: MAX as usize {
1598
+ if i <= u32:: MAX as usize {
1599
1599
Ok ( i as u32 )
1600
1600
} else {
1601
1601
Err ( ParseError :: Overflow )
You can’t perform that action at this time.
0 commit comments