diff options
Diffstat (limited to 'widgets/compose.go')
-rw-r--r-- | widgets/compose.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index 670f4f2a..5106e17d 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -4,7 +4,6 @@ import ( "bytes" "fmt" "io" - "io/ioutil" "net/textproto" "os" "os/exec" @@ -92,7 +91,7 @@ func NewComposer(aerc *Aerc, acct *AccountView, conf *config.AercConfig, logging.Errorf("could not complete header: %v", err) }) - email, err := ioutil.TempFile("", "aerc-compose-*.eml") + email, err := os.CreateTemp("", "aerc-compose-*.eml") if err != nil { // TODO: handle this better return nil, err @@ -454,7 +453,7 @@ func (c *Composer) readSignatureFromFile() []byte { if err != nil { return nil } - signature, err := ioutil.ReadFile(sigFile) + signature, err := os.ReadFile(sigFile) if err != nil { c.aerc.PushError( fmt.Sprintf(" Error loading signature from file: %v", sigFile)) |