Skip to content

Commit e1b81f0

Browse files
committed
wip
1 parent 8dd7231 commit e1b81f0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/platform/x11/drag_n_drop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,15 +626,15 @@ fn fetch_dnd_data(window: &WindowInner) -> Result<Option<DropData>, ConnectionEr
626626
Ok(data) => data,
627627
Err(GetPropertyError::ConnectionError(e)) => return Err(e),
628628
Err(e) => {
629-
warn!(e);
629+
warn!("{}", e);
630630
return Ok(None);
631631
}
632632
};
633633

634634
match parse_data(&data) {
635635
Ok(path_list) => Ok(Some(DropData::Files(path_list))),
636636
Err(e) => {
637-
warn!(e);
637+
warn!("{}", e);
638638
Ok(None)
639639
}
640640
}

src/platform/x11/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub trait CookieExt {
145145
impl<T: RequestConnection> CookieExt for VoidCookie<'_, T> {
146146
fn check_warn(self) {
147147
if let Err(e) = self.check() {
148-
warn!(e);
148+
warn!("{}", e);
149149
}
150150
}
151151
}
@@ -159,7 +159,7 @@ impl<R: TryParse, C: RequestConnection> ReplyExt<R> for Cookie<'_, C, R> {
159159
match self.reply() {
160160
Ok(r) => Some(r),
161161
Err(e) => {
162-
warn!(e);
162+
warn!("{}", e);
163163
None
164164
}
165165
}

0 commit comments

Comments
 (0)