File tree 1 file changed +11
-2
lines changed 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ impl BuiltIn {
20
20
21
21
pub fn correct_ident < ' s > (
22
22
& ' s self ,
23
- _ident : typos:: tokens:: Identifier < ' _ > ,
23
+ ident_token : typos:: tokens:: Identifier < ' _ > ,
24
24
) -> Option < Status < ' s > > {
25
- None
25
+ let ident = ident_token. token ( ) ;
26
+ self . correct_ident_with_dict ( ident)
26
27
}
27
28
28
29
pub fn correct_word < ' s > ( & ' s self , word_token : typos:: tokens:: Word < ' _ > ) -> Option < Status < ' s > > {
@@ -50,6 +51,10 @@ impl BuiltIn {
50
51
51
52
#[ cfg( feature = "dict" ) ]
52
53
impl BuiltIn {
54
+ fn correct_ident_with_dict < ' s > ( & self , _ident : & str ) -> Option < Status < ' s > > {
55
+ None
56
+ }
57
+
53
58
// Not using `Status` to avoid the allocations
54
59
fn correct_word_with_dict (
55
60
& self ,
@@ -61,6 +66,10 @@ impl BuiltIn {
61
66
62
67
#[ cfg( not( feature = "dict" ) ) ]
63
68
impl BuiltIn {
69
+ fn correct_ident_with_dict < ' s > ( & self , _ident : & str ) -> Option < Status < ' s > > {
70
+ None
71
+ }
72
+
64
73
fn correct_word_with_dict (
65
74
& self ,
66
75
_word : unicase:: UniCase < & str > ,
You can’t perform that action at this time.
0 commit comments