Skip to content

Commit 4ca4e95

Browse files
xieyuschenChronostasys
authored andcommitted
fix lint issue
1 parent 05f6b66 commit 4ca4e95

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

build.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use vergen::EmitBuilder;
22

3-
pub fn main() {
3+
pub fn main() {
44
// NOTE: This will output everything, and requires all features enabled.
55
// NOTE: See the EmitBuilder documentation for configuration options.
66
EmitBuilder::builder()
@@ -9,5 +9,6 @@ pub fn main() {
99
.all_git()
1010
.all_rustc()
1111
.all_sysinfo()
12-
.emit().unwrap();
13-
}
12+
.emit()
13+
.unwrap();
14+
}

src/version.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::fmt;
77
pub struct VergenInfo {
88
/// `VERGEN_BUILD_TIMESTAMP` e.g. `2021-02-25T23:28:39.493201+00:00`
99
pub build_timestamp: String,
10-
/// `VERGEN_BUILD_SEMVER` e.g. `5.0.0`
10+
/// `CARGO_PKG_VERSION` e.g. `5.0.0`
1111
pub build_semver: String,
1212
/// `VERGEN_RUSTC_CHANNEL` e.g. `nightly`
1313
pub rustc_channel: String,
@@ -23,15 +23,15 @@ pub struct VergenInfo {
2323
pub rustc_semver: String,
2424
/// `VERGEN_CARGO_FEATURES` e.g. `git,build`
2525
pub cargo_features: String,
26-
/// `VERGEN_CARGO_PROFILE` e.g. `debug`
26+
/// `VERGEN_CARGO_OPT_LEVEL` e.g. `debug`
2727
pub cargo_profile: String,
2828
/// `VERGEN_CARGO_TARGET_TRIPLE` e.g. `x86_64-unknown-linux-gnu`
2929
pub cargo_target_triple: String,
3030
/// `VERGEN_GIT_BRANCH` e.g. `feature/fun`
3131
pub git_branch: String,
3232
/// `VERGEN_GIT_COMMIT_TIMESTAMP` e.g. `2021-02-24T20:55:21+00:00`
3333
pub git_commit_timestamp: String,
34-
/// `VERGEN_GIT_SEMVER` e.g. `5.0.0-2-gf49246c`
34+
/// `VERGEN_GIT_DESCRIBE` e.g. `5.0.0-2-gf49246c`
3535
pub git_semver: String,
3636
/// `VERGEN_GIT_SHA` e.g. `f49246ce334567bff9f950bfd0f3078184a2738a`
3737
pub git_sha: String,

0 commit comments

Comments
 (0)