Skip to content

Commit

Permalink
Merge pull request #128 from rerun-io/john/fix_gen_docs
Browse files Browse the repository at this point in the history
Small fixes to make clippy happy
  • Loading branch information
baoyachi committed Feb 16, 2023
2 parents 6179d11 + 0031865 commit d4145c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gen_const.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
Expand Down Expand Up @@ -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(())
Expand Down

0 comments on commit d4145c5

Please sign in to comment.