diff --git a/Cargo.toml b/Cargo.toml index 13c6772..3d53122 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,11 +19,11 @@ nom = "^7.0.*" nom_locate = "^3.0.*" flate2 = "^1.0.22" toml = { version = "^0.5.8", optional = true } -futures = { version = "*", optional = true } +futures = { version = "^0.3.17" } [build-dependencies] fl2rust = { version = "0.4", optional = true } [features] # default = ["ui"] -ui = ["fltk", "fl2rust", "toml", "futures"] \ No newline at end of file +ui = ["fltk", "fl2rust", "toml"] \ No newline at end of file diff --git a/src/steamgriddb/downloader.rs b/src/steamgriddb/downloader.rs index bda3aa6..0a94ca1 100644 --- a/src/steamgriddb/downloader.rs +++ b/src/steamgriddb/downloader.rs @@ -47,11 +47,11 @@ pub async fn download_images<'b>( .filter_map(|s| search_results.get(&s.app_id)) .map(|search| *search) .collect(); - + use steamgriddb_api::query_parameters::QueryType::*; let query_type = match image_type { - ImageType::Hero => steamgriddb_api::query_parameters::QueryType::Hero(None), - ImageType::Grid => steamgriddb_api::query_parameters::QueryType::Grid(None), - ImageType::Logo => steamgriddb_api::query_parameters::QueryType::Logo(None), + ImageType::Hero => Hero(None), + ImageType::Grid => Grid(None), + ImageType::Logo => Logo(None), }; match client diff --git a/src/steamgriddb/image_type.rs b/src/steamgriddb/image_type.rs index 470a678..7579553 100644 --- a/src/steamgriddb/image_type.rs +++ b/src/steamgriddb/image_type.rs @@ -1,4 +1,5 @@ +#[derive(Debug,Clone,Copy)] pub enum ImageType { Hero, Grid,