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 {
7373
7474impl AugmentedScriptSet {
7575 /// 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 ) ;
7878 self . hanb = self . hanb && other. hanb ;
7979 self . jpan = self . jpan && other. jpan ;
8080 self . kore = self . kore && other. kore ;
81- self
8281 }
8382
8483 /// Check if the set is empty
@@ -101,7 +100,7 @@ impl AugmentedScriptSet {
101100 pub fn for_str ( s : & str ) -> Self {
102101 let mut set = AugmentedScriptSet :: default ( ) ;
103102 for ch in s. chars ( ) {
104- set = set . intersect ( ch. into ( ) )
103+ set. intersect_with ( ch. into ( ) )
105104 }
106105 set
107106 }
You can’t perform that action at this time.
0 commit comments