all: use not_matches macro
This commit is contained in:
parent
069369e7d8
commit
5b501dab5b
5 changed files with 11 additions and 11 deletions
|
|
@ -840,7 +840,7 @@ pub enum XdgToplevelError {
|
|||
efrom!(XdgToplevelError, ClientError);
|
||||
|
||||
pub fn map_resize_edges(edge: u32) -> Option<ResizeEdges> {
|
||||
if !matches!(edge, 0 | 1 | 2 | 4 | 5 | 6 | 8 | 9 | 10) {
|
||||
if not_matches!(edge, 0 | 1 | 2 | 4 | 5 | 6 | 8 | 9 | 10) {
|
||||
return None;
|
||||
}
|
||||
Some(ResizeEdges {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue