1
0
Fork 0
forked from wry/wry

autocommit 2022-02-04 00:45:22 CET

This commit is contained in:
Julian Orth 2022-02-04 00:45:22 +01:00
parent 89b8396932
commit bb1639a2ae
15 changed files with 196 additions and 77 deletions

25
src/bugs.rs Normal file
View file

@ -0,0 +1,25 @@
use ahash::AHashMap;
use once_cell::sync::Lazy;
static BUGS: Lazy<AHashMap<&'static str, Bugs>> = Lazy::new(|| {
let mut map = AHashMap::new();
map.insert(
"chromium",
Bugs {
respect_min_max_size: true,
},
);
map
});
pub fn get(app_id: &str) -> &'static Bugs {
BUGS.get(app_id).unwrap_or(&NONE)
}
pub static NONE: Bugs = Bugs {
respect_min_max_size: false,
};
pub struct Bugs {
pub respect_min_max_size: bool,
}