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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user