Skip to content

Commit

Permalink
refactor: replace format! with concat! for string literals (#261)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
Integral-Tech and mergify[bot] authored Dec 9, 2024
1 parent 486f867 commit 7488435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl Config {
env::var(CONFIG_ENV).ok().map(PathBuf::from),
dirs::config_dir().map(|p| p.join(env!("CARGO_PKG_NAME")).join(DEFAULT_CONFIG)),
dirs::home_dir().map(|p| {
p.join(format!(".{}", env!("CARGO_PKG_NAME")))
p.join(concat!(".", env!("CARGO_PKG_NAME")))
.join(DEFAULT_CONFIG)
}),
]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub fn run() -> Result<()> {
dbus_client.notify(
env!("CARGO_PKG_NAME"),
"startup",
&format!("{} is up and running 🦡", env!("CARGO_PKG_NAME")),
concat!(env!("CARGO_PKG_NAME"), " is up and running 🦡"),
-1,
)?;
}
Expand Down

0 comments on commit 7488435

Please sign in to comment.