feat: removed trace package

This commit is contained in:
2026-02-07 20:55:42 -05:00
parent b259ab0125
commit 375148eae5
4 changed files with 14 additions and 41 deletions

View File

@@ -6,7 +6,6 @@ import (
"unicode"
"git.maximhutz.com/max/lambda/pkg/iterator"
"git.maximhutz.com/max/lambda/pkg/trace"
)
// isVariables determines whether a rune can be a valid variable.
@@ -51,7 +50,7 @@ func scanToken(i *iterator.Iterator[rune]) (*Token, error) {
letter, err := i.Next()
if err != nil {
return nil, trace.Wrap(err, "cannot produce next token")
return nil, fmt.Errorf("cannot produce next token: %w", err)
}
switch {
@@ -82,7 +81,7 @@ func scanToken(i *iterator.Iterator[rune]) (*Token, error) {
for !i.Done() {
r, err := i.Next()
if err != nil {
return nil, trace.Wrap(err, "error while parsing comment")
return nil, fmt.Errorf("error while parsing comment: %w", err)
}
if r == '\n' {