@@ -2,7 +2,6 @@ use crate::{Shadow, CARGO_CLIPPY_ALLOW_ALL, CARGO_METADATA};
2
2
3
3
macro_rules! gen_const {
4
4
( $fn_name: ident, $fn_body: expr) => {
5
- #[ allow( unused) ]
6
5
pub fn $fn_name( ) -> String {
7
6
let ( doc, content) = $fn_body;
8
7
format!(
@@ -16,7 +15,6 @@ macro_rules! gen_const {
16
15
} ;
17
16
}
18
17
19
- #[ allow( dead_code) ]
20
18
const VERSION_BRANCH_CONST : ( & str , & str ) = (
21
19
r#"/// A long version string describing the project.
22
20
/// The version string contains the package version, branch, commit hash, build time, and build environment on separate lines.
@@ -30,7 +28,6 @@ build_env:{},{}"#,PKG_VERSION, BRANCH, SHORT_COMMIT, BUILD_TIME, RUST_VERSION, R
30
28
);"## ,
31
29
) ;
32
30
33
- #[ allow( dead_code) ]
34
31
const VERSION_TAG_CONST : ( & str , & str ) = (
35
32
r#"/// A long version string describing the project.
36
33
/// The version string contains the package version, current Git tag, commit hash, build time, and build environment on separate lines.
@@ -44,7 +41,6 @@ build_env:{},{}"#,PKG_VERSION, TAG, SHORT_COMMIT, BUILD_TIME, RUST_VERSION, RUST
44
41
);"## ,
45
42
) ;
46
43
47
- #[ allow( dead_code) ]
48
44
const CLAP_VERSION_BRANCH_CONST : ( & str , & str ) = (
49
45
r#"#[deprecated = "Replaced with `CLAP_LONG_VERSION`"]"# ,
50
46
r##"pub const CLAP_VERSION:&str = shadow_rs::formatcp!(r#"{}
@@ -55,7 +51,6 @@ build_env:{},{}"#,PKG_VERSION, BRANCH, SHORT_COMMIT, BUILD_TIME, RUST_VERSION, R
55
51
);"## ,
56
52
) ;
57
53
58
- #[ allow( dead_code) ]
59
54
const CLAP_VERSION_TAG_CONST : ( & str , & str ) = (
60
55
r#"#[deprecated = "Replaced with `CLAP_LONG_VERSION`"]"# ,
61
56
r##"pub const CLAP_VERSION:&str = shadow_rs::formatcp!(r#"{}
@@ -66,7 +61,6 @@ build_env:{},{}"#,PKG_VERSION, TAG, SHORT_COMMIT, BUILD_TIME, RUST_VERSION, RUST
66
61
);"## ,
67
62
) ;
68
63
69
- #[ allow( dead_code) ]
70
64
const CLAP_LONG_VERSION_BRANCH_CONST : ( & str , & str ) = (
71
65
r#"/// A long version string describing the project.
72
66
/// The version string contains the package version, branch, commit hash, build time, and build environment on separate lines.
@@ -79,7 +73,6 @@ build_env:{},{}"#,PKG_VERSION, BRANCH, SHORT_COMMIT, BUILD_TIME, RUST_VERSION, R
79
73
);"## ,
80
74
) ;
81
75
82
- #[ allow( dead_code) ]
83
76
const CLAP_LONG_VERSION_TAG_CONST : ( & str , & str ) = (
84
77
r#"/// A long version string describing the project.
85
78
/// The version string contains the package version, current Git tag, commit hash, build time, and build environment on separate lines.
@@ -102,9 +95,7 @@ gen_const!(
102
95
) ;
103
96
gen_const ! ( clap_long_version_tag_const, CLAP_LONG_VERSION_TAG_CONST ) ;
104
97
105
- #[ allow( dead_code) ]
106
98
pub ( crate ) const BUILD_CONST_VERSION : & str = "VERSION" ;
107
- #[ allow( dead_code) ]
108
99
pub ( crate ) const BUILD_CONST_CLAP_LONG_VERSION : & str = "CLAP_LONG_VERSION" ;
109
100
110
101
pub ( crate ) fn cargo_metadata_fn ( shadow : & Shadow ) -> String {
0 commit comments