Fix formatting

This commit is contained in:
IntegratedQuantum 2025-05-13 21:48:58 +02:00
parent 73bbdcc033
commit 824840a776
2 changed files with 2 additions and 8 deletions

View File

@ -50,13 +50,7 @@ fn findValidFolderName(allocator: NeverFailingAllocator, name: []const u8) []con
defer main.stackAllocator.free(escapedName);
for(name, 0..) |char, i| {
escapedName[i] = switch(char) {
'a'...'z',
'A'...'Z',
'0'...'9',
'_',
'-',
'.',
' ' => char,
'a'...'z', 'A'...'Z', '0'...'9', '_', '-', '.', ' ' => char,
128...255 => char,
else => '-',
};

View File

@ -140,7 +140,7 @@ pub fn onOpen() void {
}
std.sort.insertion(WorldInfo, worldList.items, {}, struct {
fn lessThan(_: void, lhs: WorldInfo, rhs: WorldInfo)bool {
fn lessThan(_: void, lhs: WorldInfo, rhs: WorldInfo) bool {
return rhs.lastUsedTime -% lhs.lastUsedTime < 0;
}
}.lessThan);