use where clause for long lines
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
4432c06c86
commit
eb6e509ad8
2 changed files with 20 additions and 5 deletions
|
@ -193,11 +193,17 @@ impl Services {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn try_get<'a, 'b, T: Send + Sync + 'a + 'b + 'static>(&'b self, name: &'a str) -> Result<Arc<T>> {
|
||||
pub fn try_get<'a, 'b, T>(&'b self, name: &'a str) -> Result<Arc<T>>
|
||||
where
|
||||
T: Send + Sync + 'a + 'b + 'static,
|
||||
{
|
||||
service::try_get::<T>(&self.service, name)
|
||||
}
|
||||
|
||||
pub fn get<'a, 'b, T: Send + Sync + 'a + 'b + 'static>(&'b self, name: &'a str) -> Option<Arc<T>> {
|
||||
pub fn get<'a, 'b, T>(&'b self, name: &'a str) -> Option<Arc<T>>
|
||||
where
|
||||
T: Send + Sync + 'a + 'b + 'static,
|
||||
{
|
||||
service::get::<T>(&self.service, name)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue