Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed Oct 20, 2024
1 parent d9692a1 commit c824960
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/desktop/input_capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
//! and returned in the `failed_barrier_ids` vector.
//!
//! ```rust,no_run
//! use ashpd::desktop::input_capture::{Barrier, Capabilities, InputCapture};
//! use ashpd::desktop::input_capture::{Barrier, BarrierID, Capabilities, InputCapture};
//!
//! #[allow(unused)]
//! enum Position {
Expand All @@ -106,7 +106,7 @@
//! .iter()
//! .enumerate()
//! .map(|(n, r)| {
//! let id = (n + 1) as u32;
//! let id = BarrierID::new((n + 1) as u32).expect("barrier-id must be non-zero");
//! let (x, y) = (r.x_offset(), r.y_offset());
//! let (width, height) = (r.width() as i32, r.height() as i32);
//! let barrier_pos = match pos {
Expand Down Expand Up @@ -143,7 +143,7 @@
//! ```rust,no_run
//! use std::{collections::HashMap, os::unix::net::UnixStream, sync::OnceLock, time::Duration};
//!
//! use ashpd::desktop::input_capture::{Barrier, Capabilities, InputCapture};
//! use ashpd::desktop::input_capture::{Barrier, BarrierID, Capabilities, InputCapture};
//! use futures_util::StreamExt;
//! use reis::{
//! ei::{self, keyboard::KeyState},
Expand Down Expand Up @@ -217,7 +217,7 @@
//! .iter()
//! .enumerate()
//! .map(|(n, r)| {
//! let id = (n + 1) as u32;
//! let id = BarrierID::new((n + 1) as u32).expect("barrier-id must be non-zero");
//! let (x, y) = (r.x_offset(), r.y_offset());
//! let (width, height) = (r.width() as i32, r.height() as i32);
//! let barrier_pos = match pos {
Expand Down

0 comments on commit c824960

Please sign in to comment.