Skip to content

Commit

Permalink
bool deref
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Aug 4, 2024
1 parent 31ae236 commit 54f0123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/torii/grpc/src/types/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl TryFrom<proto::types::Primitive> for Primitive {
.ok_or(SchemaError::MissingExpectedData("value_type".to_string()))?;

let primitive = match &value_type {
proto::types::value::ValueType::BoolValue(bool) => Primitive::Bool(Some(bool.clone())),
proto::types::value::ValueType::BoolValue(bool) => Primitive::Bool(Some(*bool)),
proto::types::value::ValueType::UintValue(int) => {
match proto::types::PrimitiveType::from_i32(primitive_type) {
Some(proto::types::PrimitiveType::I8) => Primitive::I8(Some(*int as i8)),
Expand Down

0 comments on commit 54f0123

Please sign in to comment.