File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ include = [
1616build = " build.rs"
1717
1818[features ]
19+ # , "pyo3", "wasm-bindgen"
1920default = [" terminal_size" ]
2021wasm-bindgen = [" dep:wasm-bindgen" , " dep:js-sys" ]
2122
Original file line number Diff line number Diff line change @@ -36,28 +36,28 @@ impl CharUtils for char {
3636impl CharUtils for u8 {
3737 #[ inline]
3838 fn is_whitespace ( self ) -> bool {
39- debug_assert ! ( u8 :: is_ascii( & self ) ) ;
39+ debug_assert ! ( Self :: is_ascii( & self ) ) ;
4040
4141 self . is_ascii_whitespace ( )
4242 }
4343
4444 #[ inline]
4545 fn to_char ( self ) -> char {
46- debug_assert ! ( u8 :: is_ascii( & self ) ) ;
46+ debug_assert ! ( Self :: is_ascii( & self ) ) ;
4747
4848 char:: from ( self )
4949 }
5050
5151 #[ inline]
5252 fn is_ascii ( self ) -> bool {
53- debug_assert ! ( u8 :: is_ascii( & self ) ) ;
53+ debug_assert ! ( Self :: is_ascii( & self ) ) ;
5454
5555 true
5656 }
5757
5858 #[ inline]
5959 fn to_ascii_char ( self ) -> Option < u8 > {
60- debug_assert ! ( u8 :: is_ascii( & self ) ) ;
60+ debug_assert ! ( Self :: is_ascii( & self ) ) ;
6161
6262 Some ( self )
6363 }
You can’t perform that action at this time.
0 commit comments