Skip to content

Commit

Permalink
changes for smol_str
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Jul 22, 2023
1 parent 3764cc5 commit fe37df3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bedder_vcf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn match_info_value(info: &vcf::record::Info, name: &str) -> result::Result<Valu
//let info = record.info();
let key: vcf::record::info::field::Key = name
.parse()
.map_err(|_| FieldError::InvalidFieldName(String::from(name)))?;
.map_err(|_| FieldError::InvalidFieldName(String::from(name.clone())))?;

match info.get(&key) {
Some(value) => match value {
Expand Down Expand Up @@ -177,7 +177,7 @@ impl<'a> crate::position::PositionedIterator for BedderVCF<'a> {
}
}
fn name(&self) -> String {
String::from("vcf line number:") + &self.record_number.to_string()
String::from("vcf line number:".to_owned() + self.record_number.to_string().as_str())
}
}

Expand Down

0 comments on commit fe37df3

Please sign in to comment.