File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ where
179
179
writeln ! ( file, " => {{" ) ?;
180
180
match fields {
181
181
Fields :: Named ( fields) => {
182
- for field in fields. named . iter ( ) {
182
+ for field in & fields. named {
183
183
writeln ! (
184
184
file,
185
185
" {}.visit(visitor)?;" ,
@@ -234,7 +234,7 @@ where
234
234
235
235
match fields {
236
236
Fields :: Named ( fields) => {
237
- for field in fields. named . iter ( ) {
237
+ for field in & fields. named {
238
238
writeln ! (
239
239
file,
240
240
" {}.{}.visit(visitor)?;" ,
Original file line number Diff line number Diff line change 57
57
where
58
58
V : Visitor < ' ast > + ?Sized ,
59
59
{
60
- for item in self . iter ( ) {
60
+ for item in self {
61
61
item. visit ( v) ?;
62
62
}
63
63
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ fn trycmd() {
41
41
42
42
#[ test]
43
43
fn check_stdout ( ) {
44
- let re = Regex :: new ( r# "\b[0-9]+\.[0-9]+s\b"# ) . unwrap ( ) ;
44
+ let re = Regex :: new ( r"\b[0-9]+\.[0-9]+s\b" ) . unwrap ( ) ;
45
45
46
46
let necessist_db_absent = read_dir ( "tests/necessist_db_absent" ) . unwrap ( ) ;
47
47
let necessist_db_present = read_dir ( "tests/necessist_db_present" ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments