Update dependencies (#388)

* Upgrade all dependencies, fix image laod

* Fix size of import button

* Fix size when picking image

* Remove unused code

* Forgot images when new image selected

* Clippy corrections
This commit is contained in:
Philip Kristoffersen
2024-01-15 20:47:13 +01:00
committed by GitHub
parent cfb912cc7d
commit f09296f1ff
24 changed files with 1372 additions and 838 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ impl<'a> CachedSearch<'a> {
}
println!("Searching for {}", query.as_ref());
let search = self.client.search(query.as_ref()).await?;
let first_id = search.get(0).map(|f| f.id);
let first_id = search.first().map(|f| f.id);
match first_id {
Some(assumed_id) => {
self.search_map.insert(app_id, (query.into(), assumed_id));
-10
View File
@@ -22,16 +22,6 @@ impl ImageType {
&ALL_TYPES
}
pub fn ratio(&self) -> f32{
match self {
ImageType::Hero => 0.3,
ImageType::Grid => 1.6,
ImageType::WideGrid => 0.5,
ImageType::Logo => 0.2,
ImageType::BigPicture => 0.5,
ImageType::Icon => 1.0,
}
}
pub fn name(&self) -> &str {
match self {