Skip to content

Commit

Permalink
Work around the link error caused by Rust issue #16734
Browse files Browse the repository at this point in the history
  • Loading branch information
jminer committed Dec 30, 2015
1 parent b28ae92 commit 47f0564
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/basic_controls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ fn main() {
dialog.show_xy(Position::Center, Position::Center)
.expect("There was a problem showing the window");
dialog.set_title("Howdy");
dialog.leave_window().add_callback(|| println!("left window 1"));
let t = dialog.leave_window().add_callback(|| println!("left window 1"));
dialog.leave_window().add_callback(|| println!("left window 2"));
//dialog.leave_window().remove_callback(t);
dialog.leave_window().remove_callback(t);
clear_coat::main_loop();
}
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ mod button;

pub use dialog::{Position, Dialog};
pub use button::Button;
pub use common_callbacks::{NonMenuCommonCallbacks, MenuCommonCallbacks, ButtonCallback};
pub use common_callbacks::{NonMenuCommonCallbacks, MenuCommonCallbacks, ButtonCallback, Event};

use std::borrow::Cow;
use std::ffi::CStr;
Expand Down

0 comments on commit 47f0564

Please sign in to comment.