Skip to content

Commit

Permalink
pass f64 to prisma value directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed May 10, 2024
1 parent b951c48 commit f3c8eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/lib/src/prisma_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl From<PrismaValue> for prisma_models::PrismaValue {
Self::Float(bigdecimal_03::BigDecimal::from_str(&value.to_string()).unwrap())
}
PrismaValue::Float(value) => {
Self::Float(bigdecimal_03::BigDecimal::from_f64(value.to_f64().unwrap()).unwrap())
Self::Float(bigdecimal_03::BigDecimal::from_f64(value).unwrap())
}
PrismaValue::BigInt(value) => Self::BigInt(value),
PrismaValue::Bytes(value) => Self::Bytes(value),
Expand Down

0 comments on commit f3c8eec

Please sign in to comment.