Skip to content

Commit

API: writes() only for tests

syntaqxcommitted Parentcae7490Browse files
1 file+2−10/1 viewed
+2−1
6767 }
6868 }
6969
70− /// Whether it changes anything.
70+ /// Whether it changes anything: checked against the scope table in tests.
71+ #[cfg(test)]
7172 pub fn writes(self) -> bool {
7273 matches!(self, TokenOp::SetTokenPolicy | TokenOp::ReviewTokenRequest | TokenOp::RevokeMemberToken)
7374 }