From 65b32a4e25861f4a7e4c94d3fb1b82a0459b1d85 Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Fri, 7 Feb 2025 00:06:46 -0800 Subject: [PATCH] [args.rs] Suppress a linter warning. --- Makefiles/rust.Makefile | 1 + src/rs/_internal/cli/args.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefiles/rust.Makefile b/Makefiles/rust.Makefile index a83c601a..a5c2801b 100644 --- a/Makefiles/rust.Makefile +++ b/Makefiles/rust.Makefile @@ -17,6 +17,7 @@ build-rust: lint-rust: cargo clippy -- --deny warnings cargo fmt --check + cargo doc .PHONY: format-rust format-rust: diff --git a/src/rs/_internal/cli/args.rs b/src/rs/_internal/cli/args.rs index 811d5241..39e42329 100644 --- a/src/rs/_internal/cli/args.rs +++ b/src/rs/_internal/cli/args.rs @@ -35,6 +35,7 @@ pub struct TwsearchArgs { pub enum CliCommand { /// Run a single search. Search(SearchCommandArgs), + #[allow(rustdoc::bare_urls)] // The URL is not for Rust docs, it is printed to the comandline by `clap` (which does not remove brackets around URLs). /// Run a search server. /// Use with: https://experiments.cubing.net/cubing.js/twsearch/text-ui.html Serve(ServeCommandArgs),