Skip to content

Commit

Permalink
Remove unnecessary From... impl for AppContext
Browse files Browse the repository at this point in the history
  • Loading branch information
spencewenski committed May 12, 2024
1 parent 5f3dbbd commit 332dee1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/app_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,3 @@ struct AppContextInner {
#[cfg(feature = "sidekiq")]
redis_fetch: Option<sidekiq::RedisPool>,
}

/// Implemented so consumers can use [AppContext] as their [crate::app::App::State] if they want.
impl From<Arc<AppContext>> for AppContext {
fn from(value: Arc<AppContext>) -> Self {
value.as_ref().clone()
}
}

0 comments on commit 332dee1

Please sign in to comment.