Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BingqingLyu committed Jan 7, 2025
1 parent 3ba4a7f commit 3b6c64b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ fn build_vineyard_schema(schema: &schema_pb::Schema) -> GraphProxyResult<SchemaH
let key = &column.key.as_ref().unwrap();
let prop_id = key.id;
let prop_name = CString::new(key.name.to_owned()).unwrap();
let prop_type = PropertyType::from_common_data_type(column.data_type.unwrap());
let prop_type = PropertyType::from_common_data_type(column.data_type.clone().unwrap());
let state = unsafe {
v6d_build_vertex_property(v_type_builder, prop_id, prop_name.as_ptr(), prop_type)
};
Expand Down Expand Up @@ -204,7 +204,7 @@ fn build_vineyard_schema(schema: &schema_pb::Schema) -> GraphProxyResult<SchemaH
let key = &column.key.as_ref().unwrap();
let prop_id = key.id;
let prop_name = CString::new(key.name.to_owned()).unwrap();
let prop_type = PropertyType::from_common_data_type(column.data_type.unwrap());
let prop_type = PropertyType::from_common_data_type(column.data_type.clone().unwrap());
let state =
unsafe { v6d_build_edge_property(e_type_builder, prop_id, prop_name.as_ptr(), prop_type) };
check_ffi_state(state, "build_edge_property() for vineyard")?;
Expand Down

0 comments on commit 3b6c64b

Please sign in to comment.