aboutsummaryrefslogtreecommitdiffstats
path: root/src/pipe/ext_reg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pipe/ext_reg.rs')
-rw-r--r--src/pipe/ext_reg.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pipe/ext_reg.rs b/src/pipe/ext_reg.rs
index 9778f1b..cd2a8dc 100644
--- a/src/pipe/ext_reg.rs
+++ b/src/pipe/ext_reg.rs
@@ -17,7 +17,7 @@ pub(crate) struct W {
}
impl ExtReg {
- pub fn read(&self) -> R {
+ pub fn read(self) -> R {
R { bits: self.0 }
}