mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
fix(zig): resolve v0.9 compilation issues
This commit is contained in:
parent
db44d03e66
commit
923c5c7c28
6 changed files with 18 additions and 20 deletions
|
@ -218,7 +218,7 @@ pub const RocStr = extern struct {
|
|||
}
|
||||
|
||||
pub fn isEmpty(self: RocStr) bool {
|
||||
comptime const empty_len = RocStr.empty().str_len;
|
||||
const empty_len = comptime RocStr.empty().str_len;
|
||||
return self.str_len == empty_len;
|
||||
}
|
||||
|
||||
|
@ -2037,7 +2037,7 @@ test "ReverseUtf8View: empty" {
|
|||
const original_bytes = "";
|
||||
|
||||
var iter = ReverseUtf8View.initUnchecked(original_bytes).iterator();
|
||||
while (iter.nextCodepoint()) |codepoint| {
|
||||
while (iter.nextCodepoint()) |_| {
|
||||
try expect(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue