1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-10-08 22:52:04 +02:00

chore: remove refs to deprecated io/ioutil (#798)

This commit is contained in:
guangwu
2023-07-10 16:42:01 +08:00
committed by GitHub
parent 0e7ec95a1d
commit b9a63eb4f0
3 changed files with 11 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ package html
import (
"bytes"
"fmt"
"io/ioutil"
"io"
"regexp"
"strings"
"testing"
@@ -28,7 +28,7 @@ func BenchmarkHTMLFormatter(b *testing.B) {
for i := 0; i < b.N; i++ {
it, err := lexers.Get("go").Tokenise(nil, "package main\nfunc main()\n{\nprintln(`hello world`)\n}\n")
assert.NoError(b, err)
err = formatter.Format(ioutil.Discard, styles.Fallback, it)
err = formatter.Format(io.Discard, styles.Fallback, it)
assert.NoError(b, err)
}
}