Skip to content

Commit 7c25343

Browse files
committed
fix linter
1 parent 51f413a commit 7c25343

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

crates/rb-cli/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn main() {
4444

4545
// Set environment variables for the binary
4646
println!("cargo:rustc-env=GIT_HASH={}", git_hash);
47-
47+
4848
if let Some(tag) = git_tag {
4949
println!("cargo:rustc-env=GIT_TAG={}", tag);
5050
}
@@ -56,7 +56,7 @@ fn main() {
5656
// Build profile information
5757
let profile = env::var("PROFILE").unwrap_or_default();
5858
println!("cargo:rustc-env=BUILD_PROFILE={}", profile);
59-
59+
6060
if profile == "release" {
6161
println!("cargo:warning=Build script executed for release build");
6262
}

crates/rb-cli/src/bin/rb.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ fn build_version_info() -> String {
99
let version = env!("CARGO_PKG_VERSION");
1010
let git_hash = option_env!("GIT_HASH").unwrap_or("unknown");
1111
let profile = option_env!("BUILD_PROFILE").unwrap_or("unknown");
12-
12+
1313
let mut parts = vec![format!("Ruby Butler v{}", version)];
14-
14+
1515
// Add tag if available, otherwise add git hash
1616
if let Some(tag) = option_env!("GIT_TAG") {
1717
if !tag.is_empty() && tag != format!("v{}", version) {
@@ -20,21 +20,23 @@ fn build_version_info() -> String {
2020
} else if git_hash != "unknown" {
2121
parts.push(format!("({})", git_hash));
2222
}
23-
23+
2424
// Add profile if debug
2525
if profile == "debug" {
2626
parts.push("[debug build]".to_string());
2727
}
28-
28+
2929
// Add dirty flag if present
3030
if option_env!("GIT_DIRTY").is_some() {
3131
parts.push("[modified]".to_string());
3232
}
33-
34-
parts.push("\n\nA sophisticated Ruby environment manager with the refined precision".to_string());
33+
34+
parts.push(
35+
"\n\nA sophisticated Ruby environment manager with the refined precision".to_string(),
36+
);
3537
parts.push("of a proper gentleman's gentleman.\n".to_string());
3638
parts.push("At your distinguished service, RubyElders.com".to_string());
37-
39+
3840
parts.join(" ")
3941
}
4042

@@ -44,7 +46,7 @@ fn main() {
4446
println!("{}", build_version_info());
4547
return;
4648
}
47-
49+
4850
let cli = Cli::parse();
4951

5052
// Initialize logger with the effective log level (considering -v/-vv flags)

0 commit comments

Comments
 (0)