all: byte => u8

This commit is contained in:
Alexander Medvednikov 2022-04-15 14:58:56 +03:00
parent b49d873217
commit d4a0d6f73c
221 changed files with 1365 additions and 1365 deletions

View file

@ -74,7 +74,7 @@ pub fn (mut cb Clipboard) get_text() string {
return ''
}
utf8_clip := C.darwin_get_pasteboard_text(cb.pb)
return unsafe { tos_clone(&byte(utf8_clip)) }
return unsafe { tos_clone(&u8(utf8_clip)) }
}
// new_primary returns a new X11 `PRIMARY` type `Clipboard` instance allocated on the heap.