non allocating decl

This commit is contained in:
William Banfield
2022-05-11 09:58:19 -04:00
parent e0badc0b2f
commit 4257b0762e
@@ -69,7 +69,7 @@ func main() {
// DiffFromReaders parses the metrics present in the readers a and b and
// determines which metrics were added and removed in b.
func DiffFromReaders(a, b io.Reader) (Diff, error) {
parser := expfmt.TextParser{}
var parser expfmt.TextParser
amf, err := parser.TextToMetricFamilies(a)
if err != nil {
return Diff{}, err