refactor: remove Sized bound

This commit is contained in:
Ashley Wulber 2024-09-20 15:10:45 -04:00
parent 7c59b07b91
commit 1832d5637b
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
6 changed files with 6 additions and 8 deletions

View file

@ -201,7 +201,7 @@ impl DndProvider for Clipboard {
}
}
pub unsafe fn connect<W: HasDisplayHandle>(
pub unsafe fn connect<W: HasDisplayHandle + ?Sized>(
window: &W,
) -> Result<Clipboard, Box<dyn Error>> {
let clipboard = match window.display_handle()?.as_raw() {