File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -419,8 +419,8 @@ impl From<ast::Varargs> for Varargs {
419419 }
420420}
421421
422- impl Varargs {
423- pub fn from_ast_vararg_ref ( varargs : & ast:: Varargs ) -> Varargs {
422+ impl < ' a > From < & ' a ast :: Varargs > for Varargs {
423+ fn from ( varargs : & ' a ast:: Varargs ) -> Varargs {
424424 match varargs {
425425 ast:: Varargs :: None => Varargs :: None ,
426426 ast:: Varargs :: NoCapture => Varargs :: NoCapture ,
Original file line number Diff line number Diff line change @@ -445,9 +445,9 @@ impl Compiler {
445445 let line_number = self . get_source_line_number ( ) ;
446446 self . code_object_stack . push ( CodeObject :: new (
447447 args. args . iter ( ) . map ( |a| a. arg . clone ( ) ) . collect ( ) ,
448- Varargs :: from_ast_vararg_ref ( & args. vararg ) ,
448+ Varargs :: from ( & args. vararg ) ,
449449 args. kwonlyargs . iter ( ) . map ( |a| a. arg . clone ( ) ) . collect ( ) ,
450- Varargs :: from_ast_vararg_ref ( & args. kwarg ) ,
450+ Varargs :: from ( & args. kwarg ) ,
451451 self . source_path . clone ( ) . unwrap ( ) ,
452452 line_number,
453453 name. to_string ( ) ,
You can’t perform that action at this time.
0 commit comments