fix(rustup): update lifetime bounds
Send no longer implies 'static; update needed lifetime bounds.
This commit is contained in:
committed by
Sean McArthur
parent
e8833c0c89
commit
f4a66b38cb
@@ -58,7 +58,7 @@ pub trait NetworkAcceptor: Clone + Send {
|
||||
}
|
||||
|
||||
/// An iterator wrapper over a NetworkAcceptor.
|
||||
pub struct NetworkConnections<'a, N: NetworkAcceptor>(&'a mut N);
|
||||
pub struct NetworkConnections<'a, N: NetworkAcceptor + 'a>(&'a mut N);
|
||||
|
||||
impl<'a, N: NetworkAcceptor> Iterator for NetworkConnections<'a, N> {
|
||||
type Item = IoResult<N::Stream>;
|
||||
|
||||
Reference in New Issue
Block a user