Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Nov 19, 2024
1 parent 148551c commit c1159eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ mod uuid_create_graphql {

// Validate that this is a valid CUIDv2 value
{
assert_eq!(cuid::is_cuid2(cuid.as_str()), true);
assert!(cuid::is_cuid2(cuid.as_str()));
}

// Test findMany
Expand Down
2 changes: 1 addition & 1 deletion query-engine/query-structure/src/default_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ pub enum ValueGeneratorFn {
}

impl ValueGeneratorFn {
fn new(name: &str, args: &Vec<(Option<String>, PrismaValue)>) -> std::result::Result<Self, String> {
fn new(name: &str, args: &[(Option<String>, PrismaValue)]) -> std::result::Result<Self, String> {
match name {
"cuid" => match args[..] {
[(_, PrismaValue::Int(version))] => Ok(Self::Cuid(version as u8)),
Expand Down

0 comments on commit c1159eb

Please sign in to comment.