We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35df14f commit 753587bCopy full SHA for 753587b
src/lib.rs
@@ -161,7 +161,7 @@ impl Pin {
161
///
162
/// This function does not export the provided pin_num.
163
pub fn new(pin_num: u64) -> Pin {
164
- Pin { pin_num: pin_num }
+ Pin { pin_num }
165
}
166
167
/// Create a new Pin with the provided path
@@ -568,9 +568,9 @@ impl PinPoller {
568
569
match epoll_ctl(epoll_fd, EpollOp::EpollCtlAdd, devfile_fd, &mut event) {
570
Ok(_) => Ok(PinPoller {
571
- pin_num: pin_num,
572
- devfile: devfile,
573
- epoll_fd: epoll_fd,
+ pin_num,
+ devfile,
+ epoll_fd,
574
}),
575
Err(err) => {
576
let _ = close(epoll_fd); // cleanup
0 commit comments