From 003186582e463bcbafc5fbfa9e21327acb1ca2c4 Mon Sep 17 00:00:00 2001 From: John Hughes Date: Wed, 15 Feb 2023 11:52:20 +0100 Subject: [PATCH] Small fixes to make clippy happy --- src/gen_const.rs | 4 ++-- src/lib.rs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gen_const.rs b/src/gen_const.rs index b9d54f9..b18b24f 100644 --- a/src/gen_const.rs +++ b/src/gen_const.rs @@ -61,10 +61,10 @@ build_env:{},{}"#,PKG_VERSION, TAG, SHORT_COMMIT, BUILD_TIME, RUST_VERSION, RUST const VERSION_CONST_DESC: &str = r#"/// The common version const. It's so easy to use this const."#; const CLAP_VERSION_CONST_DESC: &str = - r#"/// The common version const. It's so easy to use this const with CLAP_VERSION."#; + r#"/// The common version const. It's so easy to use this const with `CLAP_VERSION`."#; const CLAP_LONG_VERSION_CONST_DESC: &str = - r#"/// The common version const. It's so easy to use this const with CLAP_VERSION."#; + r#"/// The common version const. It's so easy to use this const with `CLAP_VERSION`."#; gen_const!( version_branch_const, diff --git a/src/lib.rs b/src/lib.rs index 7a53c07..a1348e6 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -197,6 +197,7 @@ const SHADOW_RS: &str = "shadow.rs"; #[macro_export] macro_rules! shadow { ($build_mod:ident) => { + #[doc=r#"shadow-rs mod"#] pub mod $build_mod { include!(concat!(env!("OUT_DIR"), "/shadow.rs")); } @@ -289,7 +290,7 @@ impl Shadow { where F: FnOnce(&File) -> SdResult<()>, { - let desc = r#"/// Below code generated by project custom from by build.rs"#; + let desc = r#"//! Below code generated by project custom from by build.rs"#; writeln!(&self.f, "\n{desc}\n")?; f(&self.f)?; Ok(())