Skip to content

Commit 4fb4949

Browse files
committed
clippy fixes
1 parent 8ad6f7b commit 4fb4949

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/xpath_functions.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,17 +1465,17 @@ impl CountTableDims {
14651465
Ok((Value::Number(num_rows as f64), Value::Number(num_cols as f64)))
14661466
}
14671467

1468-
fn evaluate<'c, 'd>(fn_name: &str,
1468+
fn evaluate<'d>(fn_name: &str,
14691469
args: Vec<Value<'d>>) -> Result<(Value<'d>, Value<'d>), Error> {
14701470
let mut args = Args(args);
14711471
args.exactly(1)?;
14721472
let element = args.pop_nodeset()?;
14731473
let node = validate_one_node(element, fn_name)?;
14741474
if let Node::Element(e) = node {
1475-
return Ok(Self::count_table_dims(e)?);
1475+
return Self::count_table_dims(e);
14761476
}
14771477

1478-
Err( Error::Other(format!("couldn't count table rows")) )
1478+
Err( Error::Other("couldn't count table rows".to_string()) )
14791479
}
14801480
}
14811481

0 commit comments

Comments
 (0)