Fix last clippy lints

This commit is contained in:
Félix Saparelli 2019-10-28 13:48:57 +13:00
parent 7ef9d13b51
commit a1fbad0180
No known key found for this signature in database
GPG Key ID: 25940898BB90EA51
1 changed files with 4 additions and 4 deletions

View File

@ -18,15 +18,15 @@ impl PathOp {
}
}
pub fn is_create(op_: op::Op) -> bool {
pub const fn is_create(op_: op::Op) -> bool {
op_.contains(op::CREATE)
}
pub fn is_remove(op_: op::Op) -> bool {
pub const fn is_remove(op_: op::Op) -> bool {
op_.contains(op::REMOVE)
}
pub fn is_rename(op_: op::Op) -> bool {
pub const fn is_rename(op_: op::Op) -> bool {
op_.contains(op::RENAME)
}
@ -36,7 +36,7 @@ impl PathOp {
op_.intersects(write_or_close_write)
}
pub fn is_meta(op_: op::Op) -> bool {
pub const fn is_meta(op_: op::Op) -> bool {
op_.contains(op::CHMOD)
}
}