Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Aug 6, 2024
1 parent 6717a76 commit df055bd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
25 changes: 12 additions & 13 deletions src/builder_context/types_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -766,19 +766,18 @@ pub fn converted_value_to_sea_orm_value(
converted_type_to_sea_orm_array_type(&ty)?,
Some(Box::new(list_value)),
)
}
// FIXME: support ip type
// #[cfg(feature = "with-ipnetwork")]
// ConvertedType::IpNetwork => {
// let value = value.string()?;
// sea_orm::Value::String(Some(Box::new(value.to_string())))
// }
// FIXME: support mac type
// #[cfg(feature = "with-mac_address")]
// ConvertedType::MacAddress => {
// let value = value.string()?;
// sea_orm::Value::String(Some(Box::new(value.to_string())))
// }
} // FIXME: support ip type
// #[cfg(feature = "with-ipnetwork")]
// ConvertedType::IpNetwork => {
// let value = value.string()?;
// sea_orm::Value::String(Some(Box::new(value.to_string())))
// }
// FIXME: support mac type
// #[cfg(feature = "with-mac_address")]
// ConvertedType::MacAddress => {
// let value = value.string()?;
// sea_orm::Value::String(Some(Box::new(value.to_string())))
// }
})
}

Expand Down
1 change: 0 additions & 1 deletion src/outputs/entity_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ fn sea_query_value_to_graphql_value(
// #[cfg(feature = "with-mac_address")]
// #[cfg_attr(docsrs, doc(cfg(feature = "with-mac_address")))]
// sea_orm::sea_query::Value::MacAddress(value) => value.map(|it| Value::from(it.to_string())),

#[allow(unreachable_patterns)]
_ => panic!("Cannot convert SeaORM value"),
}
Expand Down

0 comments on commit df055bd

Please sign in to comment.