From 9cffc45f0347e5c8b801c151955fa9326b9b2ba7 Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Wed, 17 Aug 2022 16:19:45 +0200 Subject: go: removed io/ioutil Since the minimum required version of Go has been bumped to 1.16, the deprecation of io/ioutil can now be acted upon. This Commit removes the remaining dependencies on ioutil and replaces them with their io or os counterparts. Signed-off-by: Moritz Poldrack Acked-by: Robin Jarry --- worker/mbox/io.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'worker/mbox/io.go') diff --git a/worker/mbox/io.go b/worker/mbox/io.go index 67290482..31a906cc 100644 --- a/worker/mbox/io.go +++ b/worker/mbox/io.go @@ -3,7 +3,6 @@ package mboxer import ( "errors" "io" - "io/ioutil" "time" "git.sr.ht/~rjarry/aerc/models" @@ -23,7 +22,7 @@ func Read(r io.Reader) ([]lib.RawMessage, error) { return nil, err } - content, err := ioutil.ReadAll(msg) + content, err := io.ReadAll(msg) if err != nil { return nil, err } -- cgit