diff options
Diffstat (limited to 'commands/msgview/open.go')
-rw-r--r-- | commands/msgview/open.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/msgview/open.go b/commands/msgview/open.go index 05a3c63c..f3723fbc 100644 --- a/commands/msgview/open.go +++ b/commands/msgview/open.go @@ -3,7 +3,6 @@ package msgview import ( "fmt" "io" - "io/ioutil" "mime" "os" "time" @@ -60,7 +59,7 @@ func (Open) Execute(aerc *widgets.Aerc, args []string) error { } } - tmpFile, err := ioutil.TempFile(os.TempDir(), "aerc-*"+extension) + tmpFile, err := os.CreateTemp(os.TempDir(), "aerc-*"+extension) if err != nil { aerc.PushError(err.Error()) return |