fix trait-solver issue requiring recursion_limit increase

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-10-03 22:03:39 +00:00 committed by strawberry
parent 2d049dacc3
commit bd9a9cc5f8
6 changed files with 37 additions and 17 deletions

View file

@ -195,6 +195,7 @@ impl Services {
}
}
#[inline]
pub fn try_get<T>(&self, name: &str) -> Result<Arc<T>>
where
T: Any + Send + Sync + Sized,
@ -202,6 +203,7 @@ impl Services {
service::try_get::<T>(&self.service, name)
}
#[inline]
pub fn get<T>(&self, name: &str) -> Option<Arc<T>>
where
T: Any + Send + Sync + Sized,