File tree 2 files changed +5
-2
lines changed
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 {
85
85
86
86
define_master_elements ! {
87
87
EBML : {
88
- id: 0x1A45DFA3 ,
88
+ id: 0x1A45_DFA3 ,
89
89
children: [
90
90
EBMLVersion : { 0x4286 , UnsignedInt } ,
91
91
EBMLReadVersion : { 0x42F7 , UnsignedInt } ,
@@ -213,7 +213,7 @@ where
213
213
pub ( crate ) fn read_float ( & mut self , element_length : u64 ) -> Result < f64 > {
214
214
Ok ( match element_length {
215
215
0 => 0.0 ,
216
- 4 => self . reader . read_f32 :: < BigEndian > ( ) ? as f64 ,
216
+ 4 => f64 :: from ( self . reader . read_f32 :: < BigEndian > ( ) ?) ,
217
217
8 => self . reader . read_f64 :: < BigEndian > ( ) ?,
218
218
_ => decode_err ! ( @BAIL Ebml , "Invalid size for float element" ) ,
219
219
} )
Original file line number Diff line number Diff line change 141
141
clippy:: from_iter_instead_of_collect,
142
142
clippy:: no_effect_underscore_binding,
143
143
clippy:: used_underscore_binding,
144
+ clippy:: needless_return,
145
+ clippy:: ignored_unit_patterns,
146
+ clippy:: redundant_guards,
144
147
) ]
145
148
#![ cfg_attr( docsrs, feature( doc_auto_cfg) ) ]
146
149
You can’t perform that action at this time.
0 commit comments