Skip to content

Commit

Permalink
Update the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewshadura committed Jul 21, 2021
1 parent d22171e commit a8f6cb1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ A summary of options is included below.

X11 display to connect to.

# BUGS

The Rust port doesn't support WMII.

# SEE ALSO

[xinput(1)](http://manpages.debian.org/xinput)
Expand Down
3 changes: 0 additions & 3 deletions inputplug.1
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,6 @@ Write the process \s-1ID\s0 of the running daemon to the file \fIpidfile\fR
.IP "\fI\s-1DISPLAY\s0\fR" 4
.IX Item "DISPLAY"
X11 display to connect to.
.SH "BUGS"
.IX Header "BUGS"
The Rust port doesn't support \s-1WMII.\s0
.SH "SEE ALSO"
.IX Header "SEE ALSO"
\&\fBxinput\fR\|(1)
Expand Down
4 changes: 0 additions & 4 deletions inputplug.pod
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ X11 display to connect to.

=back

=head1 BUGS

The Rust port doesn't support WMII.

=head1 SEE ALSO

L<xinput(1)>
Expand Down
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020—2021 Andrej Shadura
// SPDX-License-Identifier: MIT
mod mask_iter;
use mask_iter::IterableMask;
use nix::unistd::daemon;
Expand Down Expand Up @@ -26,7 +28,7 @@ use x11rb::protocol::xinput::{
use x11rb::protocol::xproto::GE_GENERIC_EVENT;

#[derive(Debug, StructOpt)]
#[structopt(name = "inputplug", about = "XInput event monitor.")]
#[structopt(name = "inputplug", about = "XInput event monitor")]
struct Opt {
/// Enable debug mode.
#[structopt(long)]
Expand Down
10 changes: 10 additions & 0 deletions src/mask_iter.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
// Copyright (C) 2020 Andrej Shadura
// SPDX-License-Identifier: MIT
use std::iter::Iterator;

/// Iterate over the bits of a binary value
///
/// `IterableMask` is an iterator producing only the set bits
/// of a binary value it is created from:
/// ```rust
/// IterableMask::from(0x81_u8).collect::<Vec<u8>>()
/// # [0x80, 1]
/// ```
pub struct IterableMask<T> {
value: T,
curr_mask: T
Expand Down

0 comments on commit a8f6cb1

Please sign in to comment.