Skip to content

Commit a2aba86

Browse files
chore: Apply suggestions
Co-authored-by: Nick <[email protected]>
1 parent dd5caa7 commit a2aba86

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

rust/boil/src/build/cli.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ impl BuildArguments {
120120
"0.0.0-dev".parse().expect("must be a valid SemVer")
121121
}
122122

123+
// TODO: Auto-detect this
123124
fn default_architecture() -> TargetPlatform {
124125
TargetPlatform::Linux(Architecture::Amd64)
125126
}

rust/boil/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ pub trait VersionExt {
5050

5151
impl VersionExt for Version {
5252
fn base(&self) -> String {
53-
format!("{}.{}.{}", self.major, self.minor, self.patch)
53+
let Self {major, minor, patch, ..} = self;
54+
format!("{major}.{minor}.{patch}")
5455
}
5556

5657
fn base_prerelease(&self) -> String {

0 commit comments

Comments
 (0)