chore: refactor dnd offer mimes

This commit is contained in:
Ashley Wulber 2024-03-22 19:08:47 -04:00
parent 1063256706
commit f5384a32c0
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
3 changed files with 11 additions and 15 deletions

View file

@ -78,7 +78,10 @@ fn main() {
DndDestinationRectangle {
id: 0,
rectangle: Rectangle { x: 0., y: 0., width: 256., height: 256. },
mime_types: ALLOWED_TEXT_MIME_TYPES.iter().map(|m| Cow::from(m.to_string())).collect(),
mime_types: ALLOWED_TEXT_MIME_TYPES
.iter()
.map(|m| MimeType::from(Cow::from(m.to_string())))
.collect(),
actions: DndAction::all(),
preferred: DndAction::Copy,
},