aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Jankowski <daniel.jankowski@rub.de>2024-06-11 09:58:56 +0200
committerDaniel Jankowski <daniel.jankowski@rub.de>2024-06-11 09:58:56 +0200
commiteed126b31e7a94d16bc4aa7ef5c2d81e45a28569 (patch)
treee4be1e6e6a7c582c535a74425aaf868938d8de55 /src
parentchore(ci): pin actions to sha for hardening (diff)
downloadsl0pstatus-eed126b31e7a94d16bc4aa7ef5c2d81e45a28569.tar.gz
sl0pstatus-eed126b31e7a94d16bc4aa7ef5c2d81e45a28569.tar.xz
sl0pstatus-eed126b31e7a94d16bc4aa7ef5c2d81e45a28569.zip
chore: further bump cargo deps
Diffstat (limited to 'src')
-rw-r--r--src/render.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render.rs b/src/render.rs
index 857db82..ee4c3b0 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -40,7 +40,7 @@ pub struct FormattedPart {
}
#[cached(
- type = "SizedCache<String, FormattedPart>",
+ ty = "SizedCache<String, FormattedPart>",
create = "{ SizedCache::with_size(100) }",
convert = r#"{ (format.to_owned()) }"#
)]
@@ -49,7 +49,7 @@ pub fn formatted_part_from_string_cached(format: &str) -> FormattedPart {
}
#[cached(
- type = "SizedCache<String, Vec<FormattedPart>>",
+ ty = "SizedCache<String, Vec<FormattedPart>>",
create = "{ SizedCache::with_size(100) }",
convert = r#"{ (config.to_owned()) }"#
)]
@@ -286,7 +286,7 @@ fn hex_to_rgb(s: &str) -> anyhow::Result<Vec<u8>> {
}
#[cached(
- type = "SizedCache<String, Option<Color>>",
+ ty = "SizedCache<String, Option<Color>>",
create = "{ SizedCache::with_size(100) }",
convert = r#"{ (color.to_owned()) }"#
)]