Commit 18e7a30 1 parent 646fdff commit 18e7a30 Copy full SHA for 18e7a30
File tree 2 files changed +1
-6
lines changed
2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 1
1
#[ cfg( not( unix) ) ]
2
2
impl crate :: sys:: fs:: PathExt for std:: path:: Path {
3
3
fn readable ( & self ) -> bool {
4
- // TODO: implement
5
4
true
6
5
}
7
6
8
7
fn writable ( & self ) -> bool {
9
- // TODO: implement
10
8
true
11
9
}
12
10
13
11
fn executable ( & self ) -> bool {
14
- // TODO: implement
15
12
true
16
13
}
17
14
@@ -46,12 +43,10 @@ impl crate::sys::fs::PathExt for std::path::Path {
46
43
47
44
pub ( crate ) trait StubMetadataExt {
48
45
fn gid ( & self ) -> u32 {
49
- // TODO: implement
50
46
0
51
47
}
52
48
53
49
fn uid ( & self ) -> u32 {
54
- // TODO: implement
55
50
0
56
51
}
57
52
}
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ peg::parser! {
101
101
rule _( ) -> ( ) = quiet!{ [ ' ' | '\t' | '\n' | '\r' ] * } { }
102
102
103
103
rule literal_number( ) -> i64 =
104
- // TODO: handle binary?
104
+ // TODO: handle explicit radix (e.g., <base>#<literal>) for bases 2 through 64
105
105
"0" [ 'x' | 'X' ] s: $( [ '0' ..='9' | 'a' ..='f' | 'A' ..='F' ] * ) { ? i64 :: from_str_radix( s, 16 ) . or( Err ( "i64" ) ) } /
106
106
s: $( "0" [ '0' ..='8' ] * ) { ? i64 :: from_str_radix( s, 8 ) . or( Err ( "i64" ) ) } /
107
107
s: $( [ '1' ..='9' ] [ '0' ..='9' ] * ) { ? s. parse( ) . or( Err ( "i64" ) ) }
You can’t perform that action at this time.
0 commit comments