diff --git a/resolver/src/partner.rs b/resolver/src/partner.rs index fc6ea7b..90d7731 100644 --- a/resolver/src/partner.rs +++ b/resolver/src/partner.rs @@ -32,11 +32,11 @@ pub async fn load( match partner { Partner::Registry(p) => { let registry = p.registry.clone().unwrap_or_else(|| "catalog".to_string()); - return match registry.as_str() { + match registry.as_str() { "catalog" => load_from_catalog(credentials, name, &p.version), "hub" => load_from_cluster(client, name).await, x => Err(ResolveError::UnknownCharacterRegistry(x.to_string())), - }; + } } Partner::Repository(reference) => load_from_source(credentials, reference), diff --git a/workflow/src/state.rs b/workflow/src/state.rs index 9ff4d49..b6027f2 100644 --- a/workflow/src/state.rs +++ b/workflow/src/state.rs @@ -36,13 +36,10 @@ mod tests { #[allow(dead_code)] struct TestState; - #[test] - fn test_impl_state_trait() { - #[async_trait] - impl State<()> for TestState { - async fn handle(&self, _ctx: &Context<()>) -> Option> { - Some(Intent::Action(Action::await_change())) - } + #[async_trait] + impl State<()> for TestState { + async fn handle(&self, _ctx: &Context<()>) -> Option> { + Some(Intent::Action(Action::await_change())) } } }