From 58a268850f34b660c9c71a3442b7cc70d21944da Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 9 Sep 2019 21:19:01 -0400 Subject: Clippy. --- src/pipe/ext_reg.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pipe/ext_reg.rs') 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 } } -- cgit v1.2.3