Skip to content

Commit 6be7fa6

Browse files
committed
Address clippy warnings
1 parent 22fb976 commit 6be7fa6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ac_scraper.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)