File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,11 @@ impl Default for AugmentedScriptSet {
73
73
74
74
impl AugmentedScriptSet {
75
75
/// Intersect this set with another
76
- pub fn intersect ( mut self , other : Self ) -> Self {
77
- self . base = self . base . intersect ( other. base ) ;
76
+ pub fn intersect_with ( & mut self , other : Self ) {
77
+ self . base . intersect_with ( other. base ) ;
78
78
self . hanb = self . hanb && other. hanb ;
79
79
self . jpan = self . jpan && other. jpan ;
80
80
self . kore = self . kore && other. kore ;
81
- self
82
81
}
83
82
84
83
/// Check if the set is empty
@@ -101,7 +100,7 @@ impl AugmentedScriptSet {
101
100
pub fn for_str ( s : & str ) -> Self {
102
101
let mut set = AugmentedScriptSet :: default ( ) ;
103
102
for ch in s. chars ( ) {
104
- set = set . intersect ( ch. into ( ) )
103
+ set. intersect_with ( ch. into ( ) )
105
104
}
106
105
set
107
106
}
You can’t perform that action at this time.
0 commit comments