From d7233bf122dbf80ba8fc79e5641be2df8af10e7a Mon Sep 17 00:00:00 2001 From: SungRim Huh Date: Thu, 1 Oct 2015 16:48:25 -0700 Subject: [PATCH] docs: move the crate-level docs to top of the lib.rs file --- src/lib.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1bddcf7c012..59be84e4174 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,12 +1,3 @@ -#![crate_type= "lib"] -#![cfg_attr(feature = "nightly", feature(plugin))] -//#![cfg_attr(feature = "lints", plugin(clippy))] -//#![cfg_attr(feature = "lints", allow(option_unwrap_used))] -//#![cfg_attr(feature = "lints", allow(explicit_iter_loop))] -//#![cfg_attr(feature = "lints", deny(warnings))] -// Fix until clippy on crates.io is updated to include needless_lifetimes lint -//#![cfg_attr(feature = "lints", allow(unknown_lints))] - //! Command Line Argument Parser for Rust //! //! It is a simple to use, efficient, and full featured library for parsing command line arguments @@ -475,7 +466,16 @@ //! `clap` is licensed under the MIT license. Please read the [LICENSE-MIT](https://raw.githubusercontent.com/kbknapp/clap-rs/master/LICENSE-MIT) //! file in //! this repository for more information. -//! + +#![crate_type= "lib"] +#![cfg_attr(feature = "nightly", feature(plugin))] +//#![cfg_attr(feature = "lints", plugin(clippy))] +//#![cfg_attr(feature = "lints", allow(option_unwrap_used))] +//#![cfg_attr(feature = "lints", allow(explicit_iter_loop))] +//#![cfg_attr(feature = "lints", deny(warnings))] +// Fix until clippy on crates.io is updated to include needless_lifetimes lint +//#![cfg_attr(feature = "lints", allow(unknown_lints))] + #[cfg(feature = "suggestions")] extern crate strsim;