mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-25 02:21:37 +08:00
Fix clippy warning redundant_guards
This commit is contained in:
parent
c1eea9be00
commit
845761e498
@ -776,9 +776,10 @@ mod test {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let authorizer = move |ctx: AuthContext<'_>| match ctx.action {
|
let authorizer = move |ctx: AuthContext<'_>| match ctx.action {
|
||||||
AuthAction::Read { column_name, .. } if column_name == "private" => {
|
AuthAction::Read {
|
||||||
Authorization::Ignore
|
column_name: "private",
|
||||||
}
|
..
|
||||||
|
} => Authorization::Ignore,
|
||||||
AuthAction::DropTable { .. } => Authorization::Deny,
|
AuthAction::DropTable { .. } => Authorization::Deny,
|
||||||
AuthAction::Pragma { .. } => panic!("shouldn't be called"),
|
AuthAction::Pragma { .. } => panic!("shouldn't be called"),
|
||||||
_ => Authorization::Allow,
|
_ => Authorization::Allow,
|
||||||
|
Loading…
Reference in New Issue
Block a user