Skip to content

Commit

Permalink
Fixed minor errors requiring a result, added allow dead_code to graph…
Browse files Browse the repository at this point in the history
…ql_query_builder
  • Loading branch information
brendan-oconnell committed Sep 18, 2024
1 parent 6d596c9 commit 338130a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion thoth-api/src/graphql/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion thoth-app/src/component/locations_form.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
3 changes: 2 additions & 1 deletion thoth-app/src/models/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 338130a

Please sign in to comment.