mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 13:30:29 +00:00
Lots of 0.14 changes
This commit is contained in:
@@ -54,14 +54,14 @@ pub const Location = union(enum) {
|
||||
line: usize,
|
||||
},
|
||||
|
||||
pub const Key = @typeInfo(Location).Union.tag_type.?;
|
||||
pub const Key = @typeInfo(Location).@"union".tag_type.?;
|
||||
|
||||
pub fn fromIter(iter: anytype, alloc: Allocator) Allocator.Error!Location {
|
||||
const Iter = t: {
|
||||
const T = @TypeOf(iter);
|
||||
break :t switch (@typeInfo(T)) {
|
||||
.Pointer => |v| v.child,
|
||||
.Struct => T,
|
||||
.pointer => |v| v.child,
|
||||
.@"struct" => T,
|
||||
else => return .none,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user