refactor: improve type hinting of setField
Alan Pearce alan@alanpearce.eu
Mon, 30 Dec 2024 19:03:15 +0100
1 files changed, 3 insertions(+), 3 deletions(-)
jump to
M internal/index/search.go → internal/index/search.go
@@ -85,10 +85,10 @@ return result, nil } -func setField( - q query.FieldableQuery, +func setField[T query.FieldableQuery]( + q T, field string, -) query.FieldableQuery { +) T { q.SetField(field) return q