Fix warnings.
This commit is contained in:
parent
52e0d305aa
commit
25f664e69e
@ -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<DiffEntry<'b, 's>, Box<dyn std::error::Error>> {
|
||||
@ -515,9 +515,9 @@ fn compare_section<'b, 's>(
|
||||
rust: &'b Section<'s>,
|
||||
) -> Result<DiffEntry<'b, 's>, Box<dyn std::error::Error>> {
|
||||
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<DiffEntry<'b, 's>, Box<dyn std::error::Error>> {
|
||||
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<DiffEntry<'b, 's>, Box<dyn std::error::Error>> {
|
||||
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<DiffEntry<'b, 's>, Box<dyn std::error::Error>> {
|
||||
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()) {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user