mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
app,gpu{,/headless,/internal/rendertest}: replace io/ioutil with io & os
Signed-off-by: Serhat Sevki Dincer <jfcgauss@gmail.com>
This commit is contained in:
committed by
Elias Naur
parent
1210bbb34a
commit
39b1158410
+1
-2
@@ -12,7 +12,6 @@ import (
|
||||
"fmt"
|
||||
"image"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"math"
|
||||
"os"
|
||||
"os/exec"
|
||||
@@ -1018,7 +1017,7 @@ func (w *window) ReadClipboard() {
|
||||
// Don't let slow clipboard transfers block event loop.
|
||||
go func() {
|
||||
defer r.Close()
|
||||
data, _ := ioutil.ReadAll(r)
|
||||
data, _ := io.ReadAll(r)
|
||||
w.clipReads <- clipboard.Event{Text: string(data)}
|
||||
w.Wakeup()
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user