associated `static` items are not allowed
gitmalong opened this issue · comments
#[cached(
convert = r##"{ format!("{}", address) }"##,
type = "SizedCache<String, String>",
create = "{ SizedCache::with_size(1000) }",
)]
async fn get_cached(
address: String,
) -> String {
Ok("test".to_string())
}
--> associated static items are not allowedrustc
cached = { version = "0.34.1" }
Any idea?