diff --git a/components/compositing/constellation.rs b/components/compositing/constellation.rs index 4b6ffb467a3..8237908656f 100644 --- a/components/compositing/constellation.rs +++ b/components/compositing/constellation.rs @@ -476,7 +476,7 @@ impl Constellation { sender.send(result).unwrap(); } ConstellationMsg::SetClipboardContents(s) => { - if let Some(ref ctx) = self.clipboard_ctx { + if let Some(ref mut ctx) = self.clipboard_ctx { if let Err(e) = ctx.set_contents(s) { debug!("Error setting clipboard contents ({})", e); } diff --git a/components/script/textinput.rs b/components/script/textinput.rs index 16af930518f..9ce3a482a65 100644 --- a/components/script/textinput.rs +++ b/components/script/textinput.rs @@ -329,7 +329,6 @@ impl TextInput { }, Key::C if is_control_key(mods) => { if let Some(text) = self.get_selection_text() { - println!("get_selection_text(): {}", &text); self.clipboard_provider.set_clipboard_contents(text); } KeyReaction::DispatchInput diff --git a/components/servo/Cargo.lock b/components/servo/Cargo.lock index 60a3d00f48a..b176435974e 100644 --- a/components/servo/Cargo.lock +++ b/components/servo/Cargo.lock @@ -131,7 +131,7 @@ dependencies = [ [[package]] name = "clipboard" version = "0.0.1" -source = "git+https://github.com/aweinstock314/rust-clipboard#d271be958151cbc90d4cea670f028afe05e75cbe" +source = "git+https://github.com/aweinstock314/rust-clipboard#67ec94ac27b28ff4ed3a4dde212f57e302f7cc35" dependencies = [ "libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "x11 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/ports/cef/Cargo.lock b/ports/cef/Cargo.lock index 1b4702c0757..30924e32663 100644 --- a/ports/cef/Cargo.lock +++ b/ports/cef/Cargo.lock @@ -130,7 +130,7 @@ dependencies = [ [[package]] name = "clipboard" version = "0.0.1" -source = "git+https://github.com/aweinstock314/rust-clipboard#d271be958151cbc90d4cea670f028afe05e75cbe" +source = "git+https://github.com/aweinstock314/rust-clipboard#67ec94ac27b28ff4ed3a4dde212f57e302f7cc35" dependencies = [ "libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "x11 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/ports/gonk/Cargo.lock b/ports/gonk/Cargo.lock index 063aed15c59..06c6de27216 100644 --- a/ports/gonk/Cargo.lock +++ b/ports/gonk/Cargo.lock @@ -117,7 +117,7 @@ dependencies = [ [[package]] name = "clipboard" version = "0.0.1" -source = "git+https://github.com/aweinstock314/rust-clipboard#d271be958151cbc90d4cea670f028afe05e75cbe" +source = "git+https://github.com/aweinstock314/rust-clipboard#67ec94ac27b28ff4ed3a4dde212f57e302f7cc35" dependencies = [ "libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "x11 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",