Skip to content

Commit

Permalink
gmk: remove stupid .as_ref()
Browse files Browse the repository at this point in the history
no u adam
  • Loading branch information
0x08088405 committed Nov 24, 2019
1 parent 852c77e commit dd09065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gmk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ where
.map(|asset| {
let mut enc = ZlibEncoder::new(Vec::new(), Compression::default());
match asset {
Some(a) => {
Some(asset) => {
enc.write_u32_le(true as u32)?;
write_fn(&mut enc, a.as_ref(), version)?;
write_fn(&mut enc, asset, version)?;
}
None => {
enc.write_u32_le(false as u32)?;
Expand Down

0 comments on commit dd09065

Please sign in to comment.