style: Make clippy happy

This commit is contained in:
Ed Page 2024-06-13 12:45:33 -05:00
parent 6c6839a454
commit b3effeae10
5 changed files with 7 additions and 11 deletions

View file

@ -1,4 +1,4 @@
# clap_builder # `clap_builder`
Builder implementation for clap. Builder implementation for clap.

View file

@ -6,7 +6,6 @@
// Std // Std
use std::borrow::Cow; use std::borrow::Cow;
use std::cmp; use std::cmp;
use std::usize;
// Internal // Internal
use crate::builder::PossibleValue; use crate::builder::PossibleValue;

View file

@ -5,13 +5,6 @@
// See the [LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT) files in this repository // See the [LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT) files in this repository
// for more information. // for more information.
#![doc(html_logo_url = "https://raw.githubusercontent.com/clap-rs/clap/master/assets/clap.png")]
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![warn(missing_docs, trivial_casts, unused_allocation, trivial_numeric_casts)]
#![forbid(unsafe_code)]
#![allow(clippy::needless_doctest_main)]
//! ## Quick Start //! ## Quick Start
//! //!
//! - For generating at compile-time, see [`generate_to`] //! - For generating at compile-time, see [`generate_to`]
@ -56,8 +49,12 @@
//! } //! }
//! ``` //! ```
#![doc(html_logo_url = "https://raw.githubusercontent.com/clap-rs/clap/master/assets/clap.png")]
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))] #![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![forbid(unsafe_code)]
#![warn(missing_docs)] #![warn(missing_docs)]
#![allow(clippy::needless_doctest_main)]
#![warn(clippy::print_stderr)] #![warn(clippy::print_stderr)]
#![warn(clippy::print_stdout)] #![warn(clippy::print_stdout)]

View file

@ -1,4 +1,4 @@
# clap_derive # `clap_derive`
Macro implementation for clap's derives. Macro implementation for clap's derives.

View file

@ -1,5 +1,5 @@
<!-- omit in TOC --> <!-- omit in TOC -->
# clap_mangen # `clap_mangen`
> **Manpage generation for `clap`** > **Manpage generation for `clap`**