aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-client/src/theme.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2025-07-22 16:03:20 +0200
committerGitHub <noreply@github.com>2025-07-22 16:03:20 +0200
commite7819d258a29eeec0e9255a961fee3b44735afab (patch)
treee76946f1906d29e999485f3b2bd424fc7375037f /crates/atuin-client/src/theme.rs
parentUpdate indicatif to 0.18.0 (#2833) (diff)
downloadatuin-e7819d258a29eeec0e9255a961fee3b44735afab.zip
chore: update to rust 1.88 (#2815)
* chore: update to rust 1.88 * clippy + fmt * update ci version * update flake
Diffstat (limited to 'crates/atuin-client/src/theme.rs')
-rw-r--r--crates/atuin-client/src/theme.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/atuin-client/src/theme.rs b/crates/atuin-client/src/theme.rs
index 429f08ab..b53c2e7a 100644
--- a/crates/atuin-client/src/theme.rs
+++ b/crates/atuin-client/src/theme.rs
@@ -198,7 +198,7 @@ fn from_string(name: &str) -> Result<Color, String> {
// For full flexibility, we need to use serde_json, given
// crossterm's approach.
serde_json::from_str::<Color>(format!("\"{}\"", &name[1..]).as_str())
- .map_err(|_| format!("Could not convert color name {} to Crossterm color", name))
+ .map_err(|_| format!("Could not convert color name {name} to Crossterm color"))
}
_ => {
let srgb = named::from_str(name).ok_or("No such color in palette")?;
@@ -382,7 +382,7 @@ impl ThemeManager {
theme_file
};
- let theme_toml = format!["{}.toml", name];
+ let theme_toml = format!["{name}.toml"];
theme_file.push(theme_toml);
let mut config_builder = Config::builder();
@@ -797,8 +797,7 @@ mod theme_tests {
assert_eq!(
from_string(inp),
Err(format!(
- "Could not convert color name {} to Crossterm color",
- inp
+ "Could not convert color name {inp} to Crossterm color"
))
);
});