File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
webrtc/src/rtp_transceiver/fmtp Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ impl Fmtp for GenericFmtp {
3737
3838 /// Match returns true if g and b are compatible fmtp descriptions
3939 /// The generic implementation is used for MimeTypes that are not defined
40- fn match_fmtp ( & self , f : & ( dyn Fmtp ) ) -> bool {
40+ fn match_fmtp ( & self , f : & dyn Fmtp ) -> bool {
4141 if let Some ( c) = f. as_any ( ) . downcast_ref :: < GenericFmtp > ( ) {
4242 if self . mime_type . to_lowercase ( ) != c. mime_type ( ) . to_lowercase ( ) {
4343 return false ;
@@ -53,11 +53,11 @@ impl Fmtp for GenericFmtp {
5353 self . parameters . get ( key)
5454 }
5555
56- fn equal ( & self , other : & ( dyn Fmtp ) ) -> bool {
56+ fn equal ( & self , other : & dyn Fmtp ) -> bool {
5757 other. as_any ( ) . downcast_ref :: < GenericFmtp > ( ) == Some ( self )
5858 }
5959
60- fn as_any ( & self ) -> & ( dyn Any ) {
60+ fn as_any ( & self ) -> & dyn Any {
6161 self
6262 }
6363}
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ impl Fmtp for H264Fmtp {
4949 /// Informative note: The requirement for symmetric use does not
5050 /// apply for the level part of profile-level-id and does not apply
5151 /// for the other stream properties and capability parameters.
52- fn match_fmtp ( & self , f : & ( dyn Fmtp ) ) -> bool {
52+ fn match_fmtp ( & self , f : & dyn Fmtp ) -> bool {
5353 if let Some ( c) = f. as_any ( ) . downcast_ref :: < H264Fmtp > ( ) {
5454 // test packetization-mode
5555 let hpmode = match self . parameters . get ( "packetization-mode" ) {
@@ -89,11 +89,11 @@ impl Fmtp for H264Fmtp {
8989 self . parameters . get ( key)
9090 }
9191
92- fn equal ( & self , other : & ( dyn Fmtp ) ) -> bool {
92+ fn equal ( & self , other : & dyn Fmtp ) -> bool {
9393 other. as_any ( ) . downcast_ref :: < H264Fmtp > ( ) == Some ( self )
9494 }
9595
96- fn as_any ( & self ) -> & ( dyn Any ) {
96+ fn as_any ( & self ) -> & dyn Any {
9797 self
9898 }
9999}
Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ pub trait Fmtp: fmt::Debug {
1717
1818 /// match_fmtp compares two fmtp descriptions for
1919 /// compatibility based on the mime_type
20- fn match_fmtp ( & self , f : & ( dyn Fmtp ) ) -> bool ;
20+ fn match_fmtp ( & self , f : & dyn Fmtp ) -> bool ;
2121
2222 /// parameter returns a value for the associated key
2323 /// if contained in the parsed fmtp string
2424 fn parameter ( & self , key : & str ) -> Option < & String > ;
2525
26- fn equal ( & self , other : & ( dyn Fmtp ) ) -> bool ;
27- fn as_any ( & self ) -> & ( dyn Any ) ;
26+ fn equal ( & self , other : & dyn Fmtp ) -> bool ;
27+ fn as_any ( & self ) -> & dyn Any ;
2828}
2929
3030impl PartialEq for dyn Fmtp {
You can’t perform that action at this time.
0 commit comments