File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ pub async fn get_sample_cases(
577577 let mut h3_content: Option < String > = None ;
578578 let mut cursor = pre_element. parent ( ) ;
579579 while let Some ( node) = cursor {
580- if let Some ( parent) = ElementRef :: wrap ( node. clone ( ) ) {
580+ if let Some ( parent) = ElementRef :: wrap ( node) {
581581 if let Some ( h3_element) = parent. select ( & h3_selector) . next ( ) {
582582 if let Some ( text) = h3_element. text ( ) . next ( ) {
583583 h3_content = Some ( text. to_string ( ) ) ;
@@ -597,15 +597,15 @@ pub async fn get_sample_cases(
597597 . collect :: < String > ( )
598598 . parse ( )
599599 . unwrap ( ) ;
600- inputs. push ( ( index, pre_content. into ( ) ) ) ;
600+ inputs. push ( ( index, pre_content) ) ;
601601 } else if is_output {
602602 let index: usize = h3_content
603603 . chars ( )
604604 . filter ( |c| c. is_ascii_digit ( ) )
605605 . collect :: < String > ( )
606606 . parse ( )
607607 . unwrap ( ) ;
608- outputs. push ( ( index, pre_content. into ( ) ) ) ;
608+ outputs. push ( ( index, pre_content) ) ;
609609 }
610610 }
611611 if let Some ( target) = sample_case_id_arg {
You can’t perform that action at this time.
0 commit comments