File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ macro_rules! define_master_elements {
8585
8686define_master_elements ! {
8787 EBML : {
88- id: 0x1A45DFA3 ,
88+ id: 0x1A45_DFA3 ,
8989 children: [
9090 EBMLVersion : { 0x4286 , UnsignedInt } ,
9191 EBMLReadVersion : { 0x42F7 , UnsignedInt } ,
@@ -213,7 +213,7 @@ where
213213 pub ( crate ) fn read_float ( & mut self , element_length : u64 ) -> Result < f64 > {
214214 Ok ( match element_length {
215215 0 => 0.0 ,
216- 4 => self . reader . read_f32 :: < BigEndian > ( ) ? as f64 ,
216+ 4 => f64 :: from ( self . reader . read_f32 :: < BigEndian > ( ) ?) ,
217217 8 => self . reader . read_f64 :: < BigEndian > ( ) ?,
218218 _ => decode_err ! ( @BAIL Ebml , "Invalid size for float element" ) ,
219219 } )
Original file line number Diff line number Diff line change 141141 clippy:: from_iter_instead_of_collect,
142142 clippy:: no_effect_underscore_binding,
143143 clippy:: used_underscore_binding,
144+ clippy:: needless_return,
145+ clippy:: ignored_unit_patterns,
146+ clippy:: redundant_guards,
144147) ]
145148#![ cfg_attr( docsrs, feature( doc_auto_cfg) ) ]
146149
You can’t perform that action at this time.
0 commit comments