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(
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) ) ]
29592958fn path_to_file_url_segments_windows (
29602959 path : & Path ,
29612960 serialization : & mut String ,
Original file line number Diff line number Diff 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]
15971597pub 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 )
You can’t perform that action at this time.
0 commit comments