refactor: use unchecked Utf8View in utf8 transformation

Internally we use only validated utf8 and unchecked performs much better
and reduces unused error values.
This commit is contained in:
CJ van den Berg 2025-11-26 09:33:04 +01:00
parent 2520a37a90
commit 68b17301cd
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 8 additions and 15 deletions

View file

@ -119,7 +119,7 @@ fn flush_input(self: *Self) !void {
}
fn auto_detect_mode(self: *Self) Buffer.FindMode {
return if (Buffer.unicode.is_lowercase(self.input_.items) catch return .exact) .case_folded else .exact;
return if (Buffer.unicode.is_lowercase(self.input_.items)) .case_folded else .exact;
}
fn cmd(self: *Self, name_: []const u8, ctx: command.Context) tp.result {