refactor: remove clippy warnings
it is quite difficult to remember the --workspace --tests parameters..
This commit is contained in:
parent
114638be4b
commit
0ed641c705
@ -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);
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user