From 7fdcd4a281c3dada7e938537d7170132e6f33438 Mon Sep 17 00:00:00 2001 From: Alexandre Trendel Date: Tue, 2 Mar 2021 09:40:30 +0100 Subject: [PATCH] remove unused lifetime + ignore config.rs --- .gitignore | 3 ++- src/api/cache.rs | 2 +- src/config.rs | 3 --- 3 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 src/config.rs diff --git a/.gitignore b/.gitignore index 4753561e..2b2a90c3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ target/ build/ -.flatpak-builder/ \ No newline at end of file +.flatpak-builder/ +src/config.rs \ No newline at end of file diff --git a/src/api/cache.rs b/src/api/cache.rs index ec23190a..ea8e75e6 100644 --- a/src/api/cache.rs +++ b/src/api/cache.rs @@ -234,7 +234,7 @@ impl CacheManager { Ok(()) } - pub async fn get_or_write<'s, O, F, E>( + pub async fn get_or_write( &self, resource: &str, policy: CachePolicy, diff --git a/src/config.rs b/src/config.rs deleted file mode 100644 index 364447a5..00000000 --- a/src/config.rs +++ /dev/null @@ -1,3 +0,0 @@ -pub static PKGDATADIR: &str = "/home/alexandre/.local/share/spot"; -pub static VERSION: &str = "0.1.8"; -// pub static LOCALEDIR: &str = "/home/alexandre/.local/share/locale";