diff options
| author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2026-06-23 10:35:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-23 10:35:31 +0200 |
| commit | 7e93a857c67e0dfcb8d1a8b864e13316ef106ab0 (patch) | |
| tree | 05e34469c37ce7bf9875eaa3ae2e483b2ebb2e22 /src | |
| parent | chore(deps): add criterion to fix benchmarks (diff) | |
| download | sl0pstatus-7e93a857c67e0dfcb8d1a8b864e13316ef106ab0.tar.gz sl0pstatus-7e93a857c67e0dfcb8d1a8b864e13316ef106ab0.tar.xz sl0pstatus-7e93a857c67e0dfcb8d1a8b864e13316ef106ab0.zip | |
chore(deps): bump cached from 1.1.0 to 2.0.2 (#269)
* chore(deps): bump cached from 1.1.0 to 2.0.2
Bumps [cached](https://github.com/jaemk/cached) from 1.1.0 to 2.0.2.
- [Release notes](https://github.com/jaemk/cached/releases)
- [Changelog](https://github.com/jaemk/cached/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jaemk/cached/commits)
---
updated-dependencies:
- dependency-name: cached
dependency-version: 2.0.2
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: fix cached 1.x to 2.x breaking changes
---------
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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render.rs b/src/render.rs index 93cfd22..f8d68fa 100644 --- a/src/render.rs +++ b/src/render.rs @@ -41,7 +41,7 @@ pub struct FormattedPart { #[cached( ty = "LruCache<String, FormattedPart>", - create = "{ LruCache::with_size(100) }", + create = "{ LruCache::builder().max_size(100).build().unwrap() }", convert = r#"{ (format.to_owned()) }"# )] pub fn formatted_part_from_string_cached( @@ -53,7 +53,7 @@ pub fn formatted_part_from_string_cached( #[cached( ty = "LruCache<String, Vec<FormattedPart>>", - create = "{ LruCache::with_size(100) }", + create = "{ LruCache::builder().max_size(100).build().unwrap() }", 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 = "LruCache<String, Option<Color>>", - create = "{ LruCache::with_size(100) }", + ty = "LruCache<String, Color>", + create = "{ LruCache::builder().max_size(100).build().unwrap() }", convert = r#"{ (color.to_owned()) }"# )] fn parse_color(color: &str, config: &BTreeMap<String, String>) -> Option<Color> { |
