fix trait-solver issue requiring recursion_limit increase
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
2d049dacc3
commit
bd9a9cc5f8
6 changed files with 37 additions and 17 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue