Skip to content

Commit d7233bf

Browse files
committed
docs: move the crate-level docs to top of the lib.rs file
1 parent 3183279 commit d7233bf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/lib.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
#![crate_type= "lib"]
2-
#![cfg_attr(feature = "nightly", feature(plugin))]
3-
//#![cfg_attr(feature = "lints", plugin(clippy))]
4-
//#![cfg_attr(feature = "lints", allow(option_unwrap_used))]
5-
//#![cfg_attr(feature = "lints", allow(explicit_iter_loop))]
6-
//#![cfg_attr(feature = "lints", deny(warnings))]
7-
// Fix until clippy on crates.io is updated to include needless_lifetimes lint
8-
//#![cfg_attr(feature = "lints", allow(unknown_lints))]
9-
101
//! Command Line Argument Parser for Rust
112
//!
123
//! It is a simple to use, efficient, and full featured library for parsing command line arguments
@@ -475,7 +466,16 @@
475466
//! `clap` is licensed under the MIT license. Please read the [LICENSE-MIT](https://raw.githubusercontent.com/kbknapp/clap-rs/master/LICENSE-MIT)
476467
//! file in
477468
//! this repository for more information.
478-
//!
469+
470+
#![crate_type= "lib"]
471+
#![cfg_attr(feature = "nightly", feature(plugin))]
472+
//#![cfg_attr(feature = "lints", plugin(clippy))]
473+
//#![cfg_attr(feature = "lints", allow(option_unwrap_used))]
474+
//#![cfg_attr(feature = "lints", allow(explicit_iter_loop))]
475+
//#![cfg_attr(feature = "lints", deny(warnings))]
476+
// Fix until clippy on crates.io is updated to include needless_lifetimes lint
477+
//#![cfg_attr(feature = "lints", allow(unknown_lints))]
478+
479479

480480
#[cfg(feature = "suggestions")]
481481
extern crate strsim;

0 commit comments

Comments
 (0)