Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
maximbaz committed Aug 6, 2023
1 parent 9549889 commit 0038d82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frame/capturer/wlroots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl super::Capturer for Capturer {
}

fn find_output(connection: &Connection, output_name: &str) -> Result<WlOutput, Box<dyn Error>> {
let (globals, mut event_queue) = registry_queue_init(&connection)?;
let (globals, mut event_queue) = registry_queue_init(connection)?;

let mut list_outputs = ListOutputs {
registry_state: RegistryState::new(&globals),
Expand All @@ -83,7 +83,7 @@ fn find_output(connection: &Connection, output_name: &str) -> Result<WlOutput, B
.filter(|o| {
list_outputs
.output_state
.info(&o)
.info(o)
.and_then(|i| {
i.description.map(|d| {
d.contains(output_name)
Expand Down

0 comments on commit 0038d82

Please sign in to comment.