File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ fn should_extract_fn_return_attributes() {
199
199
astsrv:: from_str ( source) { |srv|
200
200
let doc = extract:: from_srv ( srv, "" ) ;
201
201
let doc = tystr_pass:: mk_pass ( ) ( srv, doc) ;
202
- let fold = fold:: default_seq_fold ( srv) ;
202
+ let fold = fold:: default_any_fold ( srv) ;
203
203
let doc = fold_fn ( fold, doc. topmod . fns ( ) [ 0 ] ) ;
204
204
assert doc. return . desc == some ( "what" ) ;
205
205
}
@@ -211,7 +211,7 @@ fn should_preserve_fn_sig() {
211
211
astsrv:: from_str ( source) { |srv|
212
212
let doc = extract:: from_srv ( srv, "" ) ;
213
213
let doc = tystr_pass:: mk_pass ( ) ( srv, doc) ;
214
- let fold = fold:: default_seq_fold ( srv) ;
214
+ let fold = fold:: default_any_fold ( srv) ;
215
215
let doc = fold_fn ( fold, doc. topmod . fns ( ) [ 0 ] ) ;
216
216
assert doc. sig == some ( "fn a() -> int" ) ;
217
217
}
You can’t perform that action at this time.
0 commit comments