Apply clippy fix

This commit is contained in:
topjohnwu
2025-07-02 19:36:27 -07:00
committed by John Wu
parent d660401063
commit 37a9724a54
18 changed files with 112 additions and 114 deletions
+2 -3
View File
@@ -42,7 +42,7 @@ fn print_usage(cmd: &str) {
eprintln!(
r#"MagiskPolicy - SELinux Policy Patch Tool
Usage: {} [--options...] [policy statements...]
Usage: {cmd} [--options...] [policy statements...]
Options:
--help show help message for policy statements
@@ -60,8 +60,7 @@ Options:
If neither --load, --load-split, nor --compile-split is specified,
it will load from current live policies (/sys/fs/selinux/policy)
"#,
cmd
"#
);
format_statement_help(&mut FmtAdaptor(&mut stderr())).ok();
+1 -1
View File
@@ -504,7 +504,7 @@ impl Display for Token<'_> {
Token::ST => f.write_char('*'),
Token::TL => f.write_char('~'),
Token::HP => f.write_char('-'),
Token::HX(n) => f.write_fmt(format_args!("{:06X}", n)),
Token::HX(n) => f.write_fmt(format_args!("{n:06X}")),
Token::ID(s) => f.write_str(s),
}
}