Skip to content

Commit 03e894c

Browse files
committed
update
1 parent 839b3bb commit 03e894c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ include = [
1616
build = "build.rs"
1717

1818
[features]
19+
# , "pyo3", "wasm-bindgen"
1920
default = ["terminal_size"]
2021
wasm-bindgen = ["dep:wasm-bindgen", "dep:js-sys"]
2122

src/solver/char_utils.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,28 @@ impl CharUtils for char {
3636
impl 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
}

0 commit comments

Comments
 (0)