diff options
| author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2026-06-01 21:21:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-01 21:21:25 +0200 |
| commit | f2f2da7c6f062be5c1d1303f15e8172437adf1a4 (patch) | |
| tree | 04f1a303b8523eda2c518e7d3b8b3aaf60ac148d /src | |
| parent | chore(deps): bump orhun/git-cliff-action from 4.7.1 to 4.8.0 (#252) (diff) | |
| download | sl0pstatus-f2f2da7c6f062be5c1d1303f15e8172437adf1a4.tar.gz sl0pstatus-f2f2da7c6f062be5c1d1303f15e8172437adf1a4.tar.xz sl0pstatus-f2f2da7c6f062be5c1d1303f15e8172437adf1a4.zip | |
chore(deps): bump cached from 0.59.0 to 1.1.0 (#263)
* chore(deps): bump cached from 0.59.0 to 1.1.0
Bumps [cached](https://github.com/jaemk/cached) from 0.59.0 to 1.1.0.
- [Changelog](https://github.com/jaemk/cached/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jaemk/cached/commits)
---
updated-dependencies:
- dependency-name: cached
dependency-version: 1.1.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix: breaking changes from cached 1.0
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Daniel Jankowski <daniel.jankowski@rub.de>
Diffstat (limited to 'src')
| -rw-r--r-- | src/render.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/render.rs b/src/render.rs index ff34430..93cfd22 100644 --- a/src/render.rs +++ b/src/render.rs @@ -1,4 +1,4 @@ -use cached::{SizedCache, proc_macro::cached}; +use cached::{LruCache, macros::cached}; use lazy_static::lazy_static; use std::{collections::BTreeMap, sync::Arc}; @@ -40,8 +40,8 @@ pub struct FormattedPart { } #[cached( - ty = "SizedCache<String, FormattedPart>", - create = "{ SizedCache::with_size(100) }", + ty = "LruCache<String, FormattedPart>", + create = "{ LruCache::with_size(100) }", convert = r#"{ (format.to_owned()) }"# )] pub fn formatted_part_from_string_cached( @@ -52,8 +52,8 @@ pub fn formatted_part_from_string_cached( } #[cached( - ty = "SizedCache<String, Vec<FormattedPart>>", - create = "{ SizedCache::with_size(100) }", + ty = "LruCache<String, Vec<FormattedPart>>", + create = "{ LruCache::with_size(100) }", convert = r#"{ (config_string.to_owned()) }"# )] pub fn formatted_parts_from_string_cached( @@ -304,8 +304,8 @@ fn hex_to_rgb(s: &str) -> anyhow::Result<Vec<u8>> { } #[cached( - ty = "SizedCache<String, Option<Color>>", - create = "{ SizedCache::with_size(100) }", + ty = "LruCache<String, Option<Color>>", + create = "{ LruCache::with_size(100) }", convert = r#"{ (color.to_owned()) }"# )] fn parse_color(color: &str, config: &BTreeMap<String, String>) -> Option<Color> { |
