cue/format: simplify label replacement without astutil.Apply
Since we already know the label is a *ast.BasicLit, we can inline
the replacement logic directly rather than using astutil.Apply,
which is overkill for this simple case.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I52ec664cc1a4e80d030c5df46c69dadc4b2d422a
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1229773
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Matthew Sackman <matthew@cue.works>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>