Skip to content

Commit

Permalink
Fix compilation issue with url-links feature enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Oct 18, 2023
1 parent 3cb9212 commit d2c0e6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/uniprot/model/comment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,11 @@ impl FromXml for Comment {
.transpose()?
.map(|a| a.decode_and_unescape_value(reader))
.transpose()?
.map(From::from)
.ok_or(Error::MissingElement("uri", "link"))?;
#[cfg(feature = "url-links")]
info.links.push(Url::from_str(&uri)?);
#[cfg(not(feature = "url-links"))]
info.links.push(uri);
info.links.push(uri.into());
reader.read_to_end_into(e.name(), buffer)?;
}
}
Expand Down

0 comments on commit d2c0e6a

Please sign in to comment.