autocommit 2022-02-04 00:45:22 CET
This commit is contained in:
parent
89b8396932
commit
bb1639a2ae
15 changed files with 196 additions and 77 deletions
25
src/bugs.rs
Normal file
25
src/bugs.rs
Normal 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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue