mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
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:
@@ -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));
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user