mirror of https://github.com/rwf2/Rocket.git
Impl 'Fairing' for 'Arc<dyn Fairing>'.
This commit is contained in:
parent
78e6e55aa2
commit
b556ec1bba
|
@ -534,7 +534,7 @@ pub trait Fairing: Send + Sync + Any + 'static {
|
|||
}
|
||||
|
||||
#[crate::async_trait]
|
||||
impl<T: Fairing> Fairing for std::sync::Arc<T> {
|
||||
impl<T: Fairing + ?Sized> Fairing for std::sync::Arc<T> {
|
||||
#[inline]
|
||||
fn info(&self) -> Info {
|
||||
(self as &T).info()
|
||||
|
|
Loading…
Reference in New Issue