Commit fc71c6d3 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Update plain dependency

parent ef5ca540
[package]
name = "dmi"
version = "0.1.0"
version = "0.1.1"
[dependencies]
plain = "0.1"
plain = "0.2.3"
......@@ -126,7 +126,7 @@ pub fn tables(data: &[u8]) -> Vec<Table> {
// Read header
let mut header = Header::default();
{
let bytes = header.as_mut_bytes();
let bytes = unsafe { plain::as_mut_bytes(&mut header) };
let mut j = 0;
while i < data.len() && j < bytes.len() {
......@@ -144,7 +144,7 @@ pub fn tables(data: &[u8]) -> Vec<Table> {
//println!("{:?}", header);
// Read data
let mut table = vec![0; header.len as usize - header.as_bytes().len()];
let mut table = vec![0; header.len as usize - unsafe { plain::as_bytes(&header) }.len()];
{
let mut j = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment