diff options
Diffstat (limited to 'src/lsp/Scip.zig')
| -rw-r--r-- | src/lsp/Scip.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lsp/Scip.zig b/src/lsp/Scip.zig index 8deffe26..3d3cc648 100644 --- a/src/lsp/Scip.zig +++ b/src/lsp/Scip.zig @@ -67,7 +67,7 @@ pub const Index = struct { } pub fn root(ix: *const Index) []const u8 { - return std.fs.path.dirname(ix.path()) orelse "/"; + return std.Io.Dir.path.dirname(ix.path()) orelse "/"; } /// The document of the file at `abs`, or null. @@ -217,7 +217,7 @@ pub fn find(io: std.Io, dir: []const u8) Error!?*Index { for (0..8) |_| { const p = std.fmt.bufPrint(&buf, "{s}/index.scip", .{if (std.mem.eql(u8, d, "/")) "" else d}) catch return null; if (statPath(io, p, .{})) |st| return try use(io, p, st) else |_| {} - d = std.fs.path.dirname(d) orelse return null; + d = std.Io.Dir.path.dirname(d) orelse return null; } return null; } |
