Skip to content

Commit

Permalink
chore: Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Oct 4, 2018
1 parent a7fee2d commit c27e337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liquid-value/src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl serde::Serializer for Serializer {

#[inline]
fn serialize_f32(self, value: f32) -> Result<Value, SerError> {
self.serialize_f64(value as f64)
self.serialize_f64(f64::from(value))
}

#[inline]
Expand All @@ -142,7 +142,7 @@ impl serde::Serializer for Serializer {
}

fn serialize_bytes(self, value: &[u8]) -> Result<Value, SerError> {
let vec = value.iter().map(|&b| Value::scalar(b as i32)).collect();
let vec = value.iter().map(|&b| Value::scalar(i32::from(b))).collect();
Ok(Value::Array(vec))
}

Expand Down

0 comments on commit c27e337

Please sign in to comment.