ci: update the checks dependencies #96
| @@ -45,7 +45,7 @@ impl From<diesel::result::Error> for ProjectError { | |||||||
| // Has to be implemented for Dioxus server functions. | // Has to be implemented for Dioxus server functions. | ||||||
| impl Display for ProjectError { | impl Display for ProjectError { | ||||||
|     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||||||
|         write!(f, "{:?}", self) |         write!(f, "{self:?}") | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -65,7 +65,7 @@ impl From<ErrorVec<Error>> for ErrorVec<SubtaskError> { | |||||||
| // Has to be implemented for Dioxus server functions. | // Has to be implemented for Dioxus server functions. | ||||||
| impl Display for SubtaskError { | impl Display for SubtaskError { | ||||||
|     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||||||
|         write!(f, "{:?}", self) |         write!(f, "{self:?}") | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -55,7 +55,7 @@ impl From<diesel::result::Error> for TaskError { | |||||||
| // Has to be implemented for Dioxus server functions. | // Has to be implemented for Dioxus server functions. | ||||||
| impl Display for TaskError { | impl Display for TaskError { | ||||||
|     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||||||
|         write!(f, "{:?}", self) |         write!(f, "{self:?}") | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -12,10 +12,10 @@ async fn fetch_projects(keys: Vec<QueryKey>) -> QueryResult<QueryValue, QueryErr | |||||||
|         match get_projects().await { |         match get_projects().await { | ||||||
|             Ok(projects) => Ok(QueryValue::Projects(projects)), |             Ok(projects) => Ok(QueryValue::Projects(projects)), | ||||||
|             Err(ServerFnError::WrappedServerError(errors)) => Err(QueryErrors::Error(errors)), |             Err(ServerFnError::WrappedServerError(errors)) => Err(QueryErrors::Error(errors)), | ||||||
|             Err(error) => panic!("Unexpected error: {:?}", error), |             Err(error) => panic!("Unexpected error: {error:?}"), | ||||||
|         } |         } | ||||||
|         .into() |         .into() | ||||||
|     } else { |     } else { | ||||||
|         panic!("Unexpected query keys: {:?}", keys); |         panic!("Unexpected query keys: {keys:?}"); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -17,10 +17,10 @@ async fn fetch_subtasks_of_task(keys: Vec<QueryKey>) -> QueryResult<QueryValue, | |||||||
|         match get_subtasks_of_task(*task_id).await { |         match get_subtasks_of_task(*task_id).await { | ||||||
|             Ok(subtasks) => Ok(QueryValue::Subtasks(subtasks)), |             Ok(subtasks) => Ok(QueryValue::Subtasks(subtasks)), | ||||||
|             Err(ServerFnError::WrappedServerError(errors)) => Err(QueryErrors::Error(errors)), |             Err(ServerFnError::WrappedServerError(errors)) => Err(QueryErrors::Error(errors)), | ||||||
|             Err(error) => panic!("Unexpected error: {:?}", error), |             Err(error) => panic!("Unexpected error: {error:?}"), | ||||||
|         } |         } | ||||||
|         .into() |         .into() | ||||||
|     } else { |     } else { | ||||||
|         panic!("Unexpected query keys: {:?}", keys); |         panic!("Unexpected query keys: {keys:?}"); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
| @@ -19,11 +19,11 @@ async fn fetch_tasks_in_category(keys: Vec<QueryKey>) -> QueryResult<QueryValue, | |||||||
|         match get_tasks_in_category(category.clone()).await { |         match get_tasks_in_category(category.clone()).await { | ||||||
|             Ok(tasks) => Ok(QueryValue::Tasks(tasks)), |             Ok(tasks) => Ok(QueryValue::Tasks(tasks)), | ||||||
|             Err(ServerFnError::WrappedServerError(errors)) => Err(QueryErrors::Error(errors)), |             Err(ServerFnError::WrappedServerError(errors)) => Err(QueryErrors::Error(errors)), | ||||||
|             Err(error) => panic!("Unexpected error: {:?}", error), |             Err(error) => panic!("Unexpected error: {error:?}"), | ||||||
|         } |         } | ||||||
|         .into() |         .into() | ||||||
|     } else { |     } else { | ||||||
|         panic!("Unexpected query keys: {:?}", keys); |         panic!("Unexpected query keys: {keys:?}"); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -47,10 +47,10 @@ async fn fetch_tasks_with_subtasks_in_category( | |||||||
|         match get_tasks_with_subtasks_in_category(category.clone()).await { |         match get_tasks_with_subtasks_in_category(category.clone()).await { | ||||||
|             Ok(tasks) => Ok(QueryValue::TasksWithSubtasks(tasks)), |             Ok(tasks) => Ok(QueryValue::TasksWithSubtasks(tasks)), | ||||||
|             Err(ServerFnError::WrappedServerError(errors)) => Err(QueryErrors::Error(errors)), |             Err(ServerFnError::WrappedServerError(errors)) => Err(QueryErrors::Error(errors)), | ||||||
|             Err(error) => panic!("Unexpected error: {:?}", error), |             Err(error) => panic!("Unexpected error: {error:?}"), | ||||||
|         } |         } | ||||||
|         .into() |         .into() | ||||||
|     } else { |     } else { | ||||||
|         panic!("Unexpected query keys: {:?}", keys); |         panic!("Unexpected query keys: {keys:?}"); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user