Skip to content

Commit 18e7a30

Browse files
authored
chore: update comments (#129)
1 parent 646fdff commit 18e7a30

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

brush-core/src/sys/stubs/fs.rs

-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
#[cfg(not(unix))]
22
impl crate::sys::fs::PathExt for std::path::Path {
33
fn readable(&self) -> bool {
4-
// TODO: implement
54
true
65
}
76

87
fn writable(&self) -> bool {
9-
// TODO: implement
108
true
119
}
1210

1311
fn executable(&self) -> bool {
14-
// TODO: implement
1512
true
1613
}
1714

@@ -46,12 +43,10 @@ impl crate::sys::fs::PathExt for std::path::Path {
4643

4744
pub(crate) trait StubMetadataExt {
4845
fn gid(&self) -> u32 {
49-
// TODO: implement
5046
0
5147
}
5248

5349
fn uid(&self) -> u32 {
54-
// TODO: implement
5550
0
5651
}
5752
}

brush-parser/src/arithmetic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ peg::parser! {
101101
rule _() -> () = quiet!{[' ' | '\t' | '\n' | '\r']*} {}
102102

103103
rule literal_number() -> i64 =
104-
// TODO: handle binary?
104+
// TODO: handle explicit radix (e.g., <base>#<literal>) for bases 2 through 64
105105
"0" ['x' | 'X'] s:$(['0'..='9' | 'a'..='f' | 'A'..='F']*) {? i64::from_str_radix(s, 16).or(Err("i64")) } /
106106
s:$("0" ['0'..='8']*) {? i64::from_str_radix(s, 8).or(Err("i64")) } /
107107
s:$(['1'..='9'] ['0'..='9']*) {? s.parse().or(Err("i64")) }

0 commit comments

Comments
 (0)