Clippy fixes

This commit is contained in:
Austin Alvarado
2024-01-18 05:59:55 +00:00
parent cf492db570
commit ee72b571d0

View File

@@ -68,7 +68,7 @@ impl CommonComponent<CreateUserAttributeForm> for CreateUserAttributeForm {
}; };
let req = create_user_attribute::Variables { let req = create_user_attribute::Variables {
name: model.attribute_name, name: model.attribute_name,
attribute_type: attribute_type, attribute_type,
is_editable: model.is_editable, is_editable: model.is_editable,
is_list: model.is_list, is_list: model.is_list,
is_visible: model.is_visible, is_visible: model.is_visible,
@@ -107,8 +107,10 @@ impl Component for CreateUserAttributeForm {
type Properties = (); type Properties = ();
fn create(_: &Context<Self>) -> Self { fn create(_: &Context<Self>) -> Self {
let mut model = CreateUserAttributeModel::default(); let model = CreateUserAttributeModel {
model.attribute_type = "String".to_string(); attribute_type: "String".to_string(),
..Default::default()
};
Self { Self {
common: CommonComponentParts::<Self>::create(), common: CommonComponentParts::<Self>::create(),
form: yew_form::Form::<CreateUserAttributeModel>::new(model), form: yew_form::Form::<CreateUserAttributeModel>::new(model),