Skip to content

Commit

Permalink
style: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Dec 14, 2021
1 parent 732c8a5 commit eda875c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/parser/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ARRAY_TABLE_CLOSE: &[u8] = b"]]";
toml_parser!(std_table, parser, {
(
between(byte(STD_TABLE_OPEN), byte(STD_TABLE_CLOSE), key()),
line_trailing().and_then(|t| std::str::from_utf8(t)),
line_trailing().and_then(std::str::from_utf8),
)
.and_then(|(h, t)| parser.borrow_mut().deref_mut().on_std_header(h, t))
});
Expand All @@ -42,7 +42,7 @@ toml_parser!(std_table, parser, {
toml_parser!(array_table, parser, {
(
between(range(ARRAY_TABLE_OPEN), range(ARRAY_TABLE_CLOSE), key()),
line_trailing().and_then(|t| std::str::from_utf8(t)),
line_trailing().and_then(std::str::from_utf8),
)
.and_then(|(h, t)| parser.borrow_mut().deref_mut().on_array_header(h, t))
});
Expand Down
2 changes: 1 addition & 1 deletion tests/easy_encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ fn from_table(
fn from_array(
decoded: &[toml_test_harness::Decoded],
) -> Result<toml_edit::easy::value::Array, toml_test_harness::Error> {
decoded.iter().map(|v| from_decoded(v)).collect()
decoded.iter().map(from_decoded).collect()
}
2 changes: 1 addition & 1 deletion tests/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,5 @@ fn from_table(
fn from_array(
decoded: &[toml_test_harness::Decoded],
) -> Result<toml_edit::Array, toml_test_harness::Error> {
decoded.iter().map(|v| from_decoded(v)).collect()
decoded.iter().map(from_decoded).collect()
}

0 comments on commit eda875c

Please sign in to comment.