From a1fbad018002f512d8159d012cba319b96016de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Saparelli?= Date: Mon, 28 Oct 2019 13:48:57 +1300 Subject: [PATCH] Fix last clippy lints --- src/pathop.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pathop.rs b/src/pathop.rs index 1b36a06f..dac1ac42 100644 --- a/src/pathop.rs +++ b/src/pathop.rs @@ -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) } }