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
drivers
Commits
dd5f83cd
Commit
dd5f83cd
authored
Dec 01, 2017
by
SeongUk Cho
Browse files
solved error: #[derive] can't be used on a non-Copy #[repr(packed)] struct (error E0133)
parent
2e07aab6
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcid/src/pci/header.rs
View file @
dd5f83cd
use
std
::
ops
::{
Deref
,
DerefMut
};
use
std
::{
slice
,
mem
};
#[derive(
Debug,
Default)]
#[derive(Default)]
#[repr(packed)]
pub
struct
PciHeader
{
pub
vendor_id
:
u16
,
...
...
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