summaryrefslogtreecommitdiff
path: root/src/devices/r820t.rs
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2018-07-30 21:49:15 +0300
committerYuval Adam <_@yuv.al>2018-07-30 21:49:15 +0300
commitd1fe53b99a44d9ffa4f1b21b13e8a686c30ceff8 (patch)
tree3cda76b4def8d00b8f0bca71279e5e7deb4123d0 /src/devices/r820t.rs
parent59e2ae68353648364ba128ca6079157794eae1fc (diff)
Duplicate all teh codez
Diffstat (limited to 'src/devices/r820t.rs')
-rw-r--r--src/devices/r820t.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/r820t.rs b/src/devices/r820t.rs
index ffea7a0..fec572c 100644
--- a/src/devices/r820t.rs
+++ b/src/devices/r820t.rs
@@ -1,7 +1,7 @@
-use super::{DeviceInfo, Actions};
+use super::{DeviceInfo, Device};
pub struct R820T {
- device: DeviceInfo
+ pub device: DeviceInfo
}
pub const DEVICE_INFO: DeviceInfo = DeviceInfo {
@@ -13,14 +13,14 @@ pub const DEVICE_INFO: DeviceInfo = DeviceInfo {
};
impl R820T {
- fn new() -> R820T {
+ pub fn new() -> R820T {
R820T {
device: DEVICE_INFO
}
}
}
-impl Actions for R820T {
+impl Device for R820T {
fn init(&self) {
println!("Init {}", self.device.name);
}