refactor: remove clippy warnings

it is quite difficult to remember the --workspace --tests parameters..
This commit is contained in:
Joonas Koivunen 2020-04-16 23:11:33 +03:00 committed by Mark Robert Henderson
parent 114638be4b
commit 0ed641c705
2 changed files with 4 additions and 4 deletions

View File

@ -39,10 +39,10 @@ pub enum FormatError<'a> {
}
impl EdgeFormatter {
pub fn from_options<'a>(
pub fn from_options(
edges: bool,
format: Option<&'a str>,
) -> Result<Self, InvalidFormat<'a>> {
format: Option<&str>,
) -> Result<Self, InvalidFormat> {
if edges && format.is_some() {
return Err(InvalidFormat::EdgesWithCustomFormat);
}

View File

@ -496,7 +496,7 @@ mod tests {
#[test]
fn walk_link_without_dot_is_unsupported() {
let cid = Cid::try_from("QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n").unwrap();
let doc = ipld!(cid.clone());
let doc = ipld!(cid);
let path = "bafyreielwgy762ox5ndmhx6kpi6go6il3gzahz3ngagb7xw3bj3aazeita/foobar";
let mut p = IpfsPath::try_from(path).unwrap();