You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Apply clippy fix
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user