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

This commit is contained in:
Tom Alexander
2023-12-30 22:42:14 -05:00
parent 6b62176fd0
commit f4e0dddd9d
18 changed files with 80 additions and 231 deletions

View File

@@ -12,6 +12,7 @@ pub struct WasmDiffResult<'s> {
#[derive(Debug)]
pub(crate) enum WasmDiffStatus {
#[allow(dead_code)]
Good,
Bad(Cow<'static, str>),
}
@@ -50,7 +51,7 @@ impl<'s> WasmDiffResult<'s> {
fn print_indented(
&self,
indentation: usize,
original_document: &str,
_original_document: &str,
) -> Result<(), Box<dyn std::error::Error>> {
let status_text = {
if self.is_self_bad() {
@@ -90,7 +91,7 @@ impl<'s> WasmDiffResult<'s> {
);
for child in self.children.iter() {
child.print_indented(indentation + 1, original_document)?;
child.print_indented(indentation + 1, _original_document)?;
}
Ok(())