Cargo fmt

This commit is contained in:
Franklin 2023-04-24 14:22:47 -04:00
parent f9897472c7
commit bb0e759d2e

View File

@ -8,7 +8,10 @@ use jl_types::{
},
dto::{
listing::Listing,
payloads::{project::{NewProjectPayload, UpdateProjectPayload}, location::NewLocationPayload},
payloads::{
location::NewLocationPayload,
project::{NewProjectPayload, UpdateProjectPayload},
},
},
};
use uuid::Uuid;
@ -282,7 +285,12 @@ pub fn generate_fields_for_project(props: &ProjectFieldsProps) -> Html {
Ok(location) => location,
Err(_) => {
// Create location
match create_location(NewLocationPayload {city: (*location_city_handle).clone(), district: (*location_district_handle).clone()}).await {
match create_location(NewLocationPayload {
city: (*location_city_handle).clone(),
district: (*location_district_handle).clone(),
})
.await
{
Ok(location) => location,
Err(error) => {
log::error!("Couldn't create location..: {error}");