File tree 2 files changed +2
-12
lines changed
2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ rustc-hash = "2.1.0"
22
22
regex-automata = " 0.4.9"
23
23
24
24
[features ]
25
- default = [" python-bindings" ]
26
25
python-bindings = [" pyo3" ]
27
26
28
27
[lib ]
Original file line number Diff line number Diff line change @@ -93,19 +93,10 @@ pub(crate) struct Mods {
93
93
spacechar : String ,
94
94
}
95
95
96
- impl Default for Mods {
97
- /// Default string modification to be applied by `TokenProcessor` of `ByteFallback` level.
98
- fn default ( ) -> Self {
99
- Self {
100
- spacechar : ' ' . to_string ( ) ,
101
- }
102
- }
103
- }
104
-
105
96
impl Mods {
106
- /// Apply default modifications to each token .
97
+ /// Default string modification to be applied by `TokenProcessor` of `ByteFallback` level .
107
98
fn apply_default ( & self , token : & str ) -> String {
108
- token. replace ( & self . spacechar , & Self :: default ( ) . spacechar )
99
+ token. replace ( & self . spacechar , " " )
109
100
}
110
101
}
111
102
You can’t perform that action at this time.
0 commit comments