Fix 1.97 clippy lints

This commit is contained in:
Niklas Mohrin 2026-07-26 23:52:43 +02:00
commit 28ed785001
No known key found for this signature in database
GPG key ID: 0ACD89A5C1DEB3EB
2 changed files with 3 additions and 4 deletions

View file

@ -96,7 +96,7 @@ where
// This is safe as long as the parsed title is only the command,
// and the iterator yields values in order of appearance.
command = title;
debug!("Detected command name: {}", &command);
debug!("Detected command name: {command}");
}
LineType::Description(text) => {
process_snippet(PageSnippet::Description(&base_indent))?;

View file

@ -429,10 +429,9 @@ fn try_main(args: Cli, enable_styles: bool) -> Result<ExitCode> {
print_warning(
enable_styles,
&format!(
"Page `{}` not found in cache.\n\
"Page `{command}` not found in cache.\n\
Try updating with `tldr --update`, or submit a pull request to:\n\
https://github.com/tldr-pages/tldr",
&command
https://github.com/tldr-pages/tldr"
),
);
}