Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
dmi
Commits
fc71c6d3
Commit
fc71c6d3
authored
May 17, 2018
by
Jeremy Soller
Browse files
Update plain dependency
parent
ef5ca540
Changes
2
Hide whitespace changes
Inline
Side-by-side
Cargo.toml
View file @
fc71c6d3
[package]
name
=
"dmi"
version
=
"0.1.
0
"
version
=
"0.1.
1
"
[dependencies]
plain
=
"0.
1
"
plain
=
"0.
2.3
"
src/lib.rs
View file @
fc71c6d3
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment