diff --git a/src/opts.rs b/src/opts.rs index e33fbdc..b42b225 100644 --- a/src/opts.rs +++ b/src/opts.rs @@ -10,6 +10,9 @@ use clap::{Parser, ValueHint}; /// Repository: https://github.com/ouch-org/ouch #[derive(Parser, Debug)] #[clap(about, version)] +// Ignore bare urls in the documentation of this file because the doc comments +// are also being used by Clap's --help generation +#[allow(rustdoc::bare_urls)] pub struct Opts { /// Skip [Y/n] questions positively. #[clap(short, long, conflicts_with = "no", global = true)] @@ -48,6 +51,7 @@ pub struct Opts { // Clap commands: // - `help` #[derive(Parser, PartialEq, Eq, Debug)] +#[allow(rustdoc::bare_urls)] pub enum Subcommand { /// Compress one or more files into one output file. #[clap(alias = "c")] diff --git a/src/utils/fs.rs b/src/utils/fs.rs index ec321bd..96f5523 100644 --- a/src/utils/fs.rs +++ b/src/utils/fs.rs @@ -126,8 +126,8 @@ pub fn try_infer_extension(path: &Path) -> Option { } /// Returns true if a path is a symlink. -/// This is the same as the nightly https://doc.rust-lang.org/std/path/struct.Path.html#method.is_symlink -// Useful to detect broken symlinks when compressing. (So we can safely ignore them) +/// This is the same as the nightly +/// Useful to detect broken symlinks when compressing. (So we can safely ignore them) pub fn is_symlink(path: &Path) -> bool { fs::symlink_metadata(path) .map(|m| m.file_type().is_symlink())