Fix clippy errors.
All checks were successful
clippy Build clippy has succeeded
rust-build Build rust-build has succeeded
rust-foreign-document-test Build rust-foreign-document-test has succeeded
rust-test Build rust-test has succeeded

This commit is contained in:
Tom Alexander 2023-10-31 17:33:08 -04:00
parent 9e908935f8
commit 78320d3265
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 3 additions and 18 deletions

View File

@ -244,7 +244,7 @@ mod tests {
let input = OrgSource::new("()");
let (remaining, call) = opt(babel_call_call)(input)?;
assert_eq!(Into::<&str>::into(remaining), "()");
assert!(matches!(call, None));
assert!(call.is_none());
Ok(())
}
}

View File

@ -211,7 +211,7 @@ mod tests {
assert_eq!(inner.children.len(), 1);
let child = inner
.children
.get(0)
.first()
.expect("Length already asserted to be 1.");
assert!(matches!(child, Object::PlainText(_)));
assert_eq!(child.get_standard_properties().get_source(), "bar");
@ -260,7 +260,7 @@ mod tests {
assert_eq!(inner.children.len(), 1);
let child = inner
.children
.get(0)
.first()
.expect("Length already asserted to be 1.");
assert!(matches!(child, Object::Bold(_)));
assert_eq!(child.get_standard_properties().get_source(), "*bar* ");
@ -270,20 +270,5 @@ mod tests {
}
};
Ok(())
// assert_eq!(
// first_paragraph
// .children
// .get(1)
// .expect("Len already asserted to be 3"),
// &Object::RadioLink(RadioLink {
// source: "*bar* ",
// children: vec![Object::Bold(Bold {
// source: "*bar* ",
// children: vec![Object::PlainText(PlainText { source: "bar" })]
// })],
// path: "*bar* "
// })
// );
}
}