1
0
Fork 0
forked from wry/wry

wire-to-xml: fix clippy lints

This commit is contained in:
Julian Orth 2025-07-15 20:33:04 +02:00
parent 5375dee007
commit d216939b07

View file

@ -1,3 +1,19 @@
#![allow(
clippy::len_zero,
clippy::needless_lifetimes,
clippy::enum_variant_names,
clippy::useless_format,
clippy::redundant_clone,
clippy::collapsible_if,
clippy::unnecessary_to_owned,
clippy::match_like_matches_macro,
clippy::too_many_arguments,
clippy::iter_skip_next,
clippy::uninlined_format_args,
clippy::manual_is_ascii_check,
clippy::single_char_pattern
)]
use { use {
crate::parser::{Type, parse_messages}, crate::parser::{Type, parse_messages},
clap::Parser, clap::Parser,
@ -34,8 +50,7 @@ fn main() -> anyhow::Result<()> {
.with_attribute(("summary", "")) .with_attribute(("summary", ""))
.write_empty()?; .write_empty()?;
for f in &cli.files { for f in &cli.files {
let res = parse_messages(std::fs::read(f)?.as_slice()) let res = parse_messages(std::fs::read(f)?.as_slice()).map_err(io::Error::other)?;
.map_err(|e| io::Error::other(e))?;
let if_name = f.file_stem().unwrap(); let if_name = f.file_stem().unwrap();
let version = res let version = res
.events .events