1
0
Fork 0
forked from wry/wry

Merge pull request #502 from mahkoh/jorth/wire-to-xml-clippy

wire-to-xml: fix clippy lints
This commit is contained in:
mahkoh 2025-07-15 20:35:39 +02:00 committed by GitHub
commit f68f7c52c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {
crate::parser::{Type, parse_messages},
clap::Parser,
@ -34,8 +50,7 @@ fn main() -> anyhow::Result<()> {
.with_attribute(("summary", ""))
.write_empty()?;
for f in &cli.files {
let res = parse_messages(std::fs::read(f)?.as_slice())
.map_err(|e| io::Error::other(e))?;
let res = parse_messages(std::fs::read(f)?.as_slice()).map_err(io::Error::other)?;
let if_name = f.file_stem().unwrap();
let version = res
.events