diff --git a/thoth-api/src/graphql/model.rs b/thoth-api/src/graphql/model.rs index baaecb58e..53af0b5a5 100644 --- a/thoth-api/src/graphql/model.rs +++ b/thoth-api/src/graphql/model.rs @@ -2040,7 +2040,7 @@ impl MutationRoot { } if let Some(old_canonical_location_id) = old_canonical_location_id { - connection.transaction(|connection| { + let _ = connection.transaction(|connection| { // Update the current canonical location to non-canonical diesel::update(location::table.find(old_canonical_location_id)) .set(old_canonical_location) diff --git a/thoth-app/src/component/locations_form.rs b/thoth-app/src/component/locations_form.rs index 25fa7d312..41cfabe6d 100644 --- a/thoth-app/src/component/locations_form.rs +++ b/thoth-app/src/component/locations_form.rs @@ -276,7 +276,7 @@ impl Component for LocationsFormComponent { FetchState::NotFetching(_) => false, FetchState::Fetching(_) => false, FetchState::Fetched(body) => match &body.data.delete_location { - Some(location) => { + Some(_location) => { ctx.props().update_locations.emit(()); true } diff --git a/thoth-app/src/models/mod.rs b/thoth-app/src/models/mod.rs index 73a301135..57b94c2de 100644 --- a/thoth-app/src/models/mod.rs +++ b/thoth-app/src/models/mod.rs @@ -17,8 +17,9 @@ macro_rules! graphql_query_builder { use yewtil::fetch::MethodBody; use $crate::THOTH_GRAPHQL_API; - + #[allow(dead_code)] pub type $fetch = Fetch<$request, $response_body>; + #[allow(dead_code)] pub type $fetch_action = FetchAction<$response_body>; #[derive(Debug, Clone, Default)]