Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy warnings #1851

Merged
merged 2 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@ pub struct Opt {
/// and line numbers link to the local file using a file URL, whereas commit hashes link to the
/// commit in GitHub, if the remote repository is hosted by GitHub. See
/// --hyperlinks-file-link-format for full control over the file URLs emitted. Hyperlinks are
/// supported by several common terminal emulators. To make them work, you must use less version
/// >= 581 with the -R flag (or use -r with older less versions, but this will break e.g.
/// --navigate). If you use tmux, then you will also need a patched fork of tmux (see
/// supported by several common terminal emulators. To make them work, you must use less
/// version >= 581 with the -R flag (or use -r with older less versions, but this will break
/// e.g. --navigate). If you use tmux, then you will also need a patched fork of tmux (see
/// <https://github.com/dandavison/tmux>).
pub hyperlinks: bool,

Expand Down
2 changes: 1 addition & 1 deletion src/utils/helpwrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub fn wrap(text: &str, width: usize, indent_with: &str, no_indent: &str, no_wra
}

#[cfg(test)]
if result.find("no-sanity").is_none() {
if !result.contains("no-sanity") {
// sanity check
let stripped_input = text
.replace(" ", "")
Expand Down
Loading