Remove dbg! macro

This commit is contained in:
Lucas Timmins 2019-04-27 23:35:33 +08:00
parent fb4e98165a
commit f56bb85124

View file

@ -247,11 +247,9 @@ impl WaylandClipboard {
WaylandRequest::Load(seat_name) => { WaylandRequest::Load(seat_name) => {
event_queue.sync_roundtrip().unwrap(); event_queue.sync_roundtrip().unwrap();
let seat_map = seat_map.lock().unwrap().clone(); let seat_map = seat_map.lock().unwrap().clone();
if let Some((device, _)) = if let Some((device, _)) = seat_map.get(
seat_map &seat_name.unwrap_or_else(|| last_seat_name.lock().unwrap().clone()),
.get(&dbg!(seat_name ) {
.unwrap_or_else(|| last_seat_name.lock().unwrap().clone())))
{
// Load // Load
let mut reader = None; let mut reader = None;
device.lock().unwrap().with_selection(|offer| { device.lock().unwrap().with_selection(|offer| {
@ -282,11 +280,9 @@ impl WaylandClipboard {
WaylandRequest::Store(seat_name, contents) => { WaylandRequest::Store(seat_name, contents) => {
event_queue.sync_roundtrip().unwrap(); event_queue.sync_roundtrip().unwrap();
let seat_map = seat_map.lock().unwrap().clone(); let seat_map = seat_map.lock().unwrap().clone();
if let Some((device, enter_serial)) = if let Some((device, enter_serial)) = seat_map.get(
seat_map &seat_name.unwrap_or_else(|| last_seat_name.lock().unwrap().clone()),
.get(&dbg!(seat_name ) {
.unwrap_or_else(|| last_seat_name.lock().unwrap().clone())))
{
let data_source = DataSource::new( let data_source = DataSource::new(
data_device_manager.lock().unwrap().as_ref().unwrap(), data_device_manager.lock().unwrap().as_ref().unwrap(),
&["text/plain;charset=utf-8"], &["text/plain;charset=utf-8"],