@@ -19,7 +19,7 @@ pub struct Scope<'bundle, 'ast, 'args, 'errors, R, M> {
19
19
/// Laughs and Quadratic Blowup attacks.
20
20
pub ( super ) placeables : u8 ,
21
21
/// Tracks hashes to prevent infinite recursion.
22
- travelled : smallvec:: SmallVec < [ & ' ast ast:: Pattern < & ' bundle str > ; 2 ] > ,
22
+ traveled : smallvec:: SmallVec < [ & ' ast ast:: Pattern < & ' bundle str > ; 2 ] > ,
23
23
/// Track errors accumulated during resolving.
24
24
pub errors : Option < & ' errors mut Vec < FluentError > > ,
25
25
/// Makes the resolver bail.
@@ -37,7 +37,7 @@ impl<'bundle, 'ast, 'args, 'errors, R, M> Scope<'bundle, 'ast, 'args, 'errors, R
37
37
args,
38
38
local_args : None ,
39
39
placeables : 0 ,
40
- travelled : Default :: default ( ) ,
40
+ traveled : Default :: default ( ) ,
41
41
errors,
42
42
dirty : false ,
43
43
}
@@ -65,8 +65,8 @@ impl<'bundle, 'ast, 'args, 'errors, R, M> Scope<'bundle, 'ast, 'args, 'errors, R
65
65
W : fmt:: Write ,
66
66
M : MemoizerKind ,
67
67
{
68
- if self . travelled . is_empty ( ) {
69
- self . travelled . push ( pattern) ;
68
+ if self . traveled . is_empty ( ) {
69
+ self . traveled . push ( pattern) ;
70
70
}
71
71
exp. write ( w, self ) ?;
72
72
if self . dirty {
@@ -89,15 +89,15 @@ impl<'bundle, 'ast, 'args, 'errors, R, M> Scope<'bundle, 'ast, 'args, 'errors, R
89
89
W : fmt:: Write ,
90
90
M : MemoizerKind ,
91
91
{
92
- if self . travelled . contains ( & pattern) {
92
+ if self . traveled . contains ( & pattern) {
93
93
self . add_error ( ResolverError :: Cyclic ) ;
94
94
w. write_char ( '{' ) ?;
95
95
exp. write_error ( w) ?;
96
96
w. write_char ( '}' )
97
97
} else {
98
- self . travelled . push ( pattern) ;
98
+ self . traveled . push ( pattern) ;
99
99
let result = pattern. write ( w, self ) ;
100
- self . travelled . pop ( ) ;
100
+ self . traveled . pop ( ) ;
101
101
result
102
102
}
103
103
}
0 commit comments