Remove dbg! macro
This commit is contained in:
parent
fb4e98165a
commit
f56bb85124
1 changed files with 6 additions and 10 deletions
16
src/lib.rs
16
src/lib.rs
|
|
@ -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"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue