diff --git a/src/compare/diff.rs b/src/compare/diff.rs index 46d223a..7cd0b4a 100644 --- a/src/compare/diff.rs +++ b/src/compare/diff.rs @@ -402,7 +402,7 @@ pub fn compare_document<'b, 's>( } fn _compare_document<'b, 's>( - source: &'s str, + _source: &'s str, emacs: &'b Token<'s>, rust: &'b Document<'s>, ) -> Result, Box> { @@ -515,9 +515,9 @@ fn compare_section<'b, 's>( rust: &'b Section<'s>, ) -> Result, Box> { let children = emacs.as_list()?; - let mut this_status = DiffStatus::Good; + let this_status = DiffStatus::Good; let mut child_status = Vec::new(); - let mut message = None; + let message = None; for (emacs_child, rust_child) in children.iter().skip(2).zip(rust.children.iter()) { child_status.push(compare_ast_node(source, emacs_child, rust_child.into())?); @@ -1095,13 +1095,13 @@ fn compare_property_drawer<'b, 's>( } fn compare_node_property<'b, 's>( - source: &'s str, + _source: &'s str, emacs: &'b Token<'s>, rust: &'b NodeProperty<'s>, ) -> Result, Box> { let child_status = Vec::new(); - let mut this_status = DiffStatus::Good; - let mut message = None; + let this_status = DiffStatus::Good; + let message = None; // TODO: Compare :key :value @@ -1188,8 +1188,8 @@ fn compare_table_row<'b, 's>( ) -> Result, Box> { let children = emacs.as_list()?; let mut child_status = Vec::new(); - let mut this_status = DiffStatus::Good; - let mut message = None; + let this_status = DiffStatus::Good; + let message = None; // TODO: Compare :type // @@ -1211,14 +1211,14 @@ fn compare_table_row<'b, 's>( } fn compare_table_cell<'b, 's>( - source: &'s str, + _source: &'s str, emacs: &'b Token<'s>, rust: &'b TableCell<'s>, ) -> Result, Box> { let children = emacs.as_list()?; let child_status = Vec::new(); - let mut this_status = DiffStatus::Good; - let mut message = None; + let this_status = DiffStatus::Good; + let message = None; for (_emacs_child, _rust_child) in children.iter().skip(2).zip(rust.children.iter()) {}