Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
yezizp2012 committed Oct 25, 2023
1 parent 4483f42 commit 749351f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/frontend/src/user/user_privilege.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use std::sync::LazyLock;

use itertools::Itertools;
use risingwave_common::acl;
use risingwave_common::acl::{AclMode, AclModeSet};
Expand Down Expand Up @@ -44,9 +42,7 @@ pub fn check_privilege_type(privilege: &Privileges, objects: &GrantObjects) -> R
}
}

fn get_all_available_modes(
object: &GrantObjects,
) -> Result<&LazyLock<AclModeSet, fn() -> AclModeSet>> {
fn get_all_available_modes(object: &GrantObjects) -> Result<&AclModeSet> {
match object {
GrantObjects::Databases(_) => Ok(&acl::ALL_AVAILABLE_DATABASE_MODES),
GrantObjects::Schemas(_) => Ok(&acl::ALL_AVAILABLE_SCHEMA_MODES),
Expand Down

0 comments on commit 749351f

Please sign in to comment.