Skip to content

Commit

Permalink
Fix unused parameter warning in xclock_utc
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardosm committed May 24, 2020
1 parent b371d89 commit ae756d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/xclock_utc.rs
Expand Up @@ -181,7 +181,7 @@ fn do_poll(conn: &RustConnection) -> nix::Result<()> {
}

#[cfg(not(unix))]
fn do_poll(conn: &RustConnection) -> Result<(), Box<dyn std::error::Error>> {
fn do_poll(_conn: &RustConnection) -> Result<(), Box<dyn std::error::Error>> {
panic!("This function is only implemented on unix")
}

Expand Down

0 comments on commit ae756d3

Please sign in to comment.