File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1414
1515use std:: { pin:: Pin , task:: Poll } ;
1616
17- use futures_util:: Stream ;
17+ use futures_util:: { Stream , stream :: BoxStream } ;
1818use pin_project_lite:: pin_project;
1919use thiserror:: Error ;
2020
@@ -38,7 +38,7 @@ pin_project! {
3838 #[ project = VariantStreamProject ]
3939 enum VariantStream <' a> {
4040 Twitch { #[ pin] x: crate :: twitch:: Chat } ,
41- YouTube { #[ pin] x: Pin < Box <dyn Stream < Item = Result <youtube:: Action , youtube:: Error >> + ' a >> }
41+ YouTube { #[ pin] x: BoxStream < ' a , Result <youtube:: Action , youtube:: Error >> }
4242 }
4343}
4444
@@ -63,8 +63,8 @@ impl<'a> From<crate::twitch::Chat> for VariantStream<'a> {
6363 }
6464}
6565
66- impl < ' a > From < Pin < Box < dyn Stream < Item = Result < youtube:: Action , youtube:: Error > > + ' a > > > for VariantStream < ' a > {
67- fn from ( value : Pin < Box < dyn Stream < Item = Result < youtube:: Action , youtube:: Error > > + ' a > > ) -> Self {
66+ impl < ' a > From < BoxStream < ' a , Result < youtube:: Action , youtube:: Error > > > for VariantStream < ' a > {
67+ fn from ( value : BoxStream < ' a , Result < youtube:: Action , youtube:: Error > > ) -> Self {
6868 Self :: YouTube { x : value }
6969 }
7070}
You can’t perform that action at this time.
0 commit comments