We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c64cc75 commit 9d6f881Copy full SHA for 9d6f881
lua/conform/util.lua
@@ -194,9 +194,9 @@ M.parse_rust_edition = function(dir)
194
for _, manifest in ipairs(manifest_files) do
195
for line in io.lines(manifest) do
196
-- if a project is part of a workspace, the edition might be defined top-level
197
- local is_in_workspace = line:match("edition *= *{ *workspace *= *true *}")
198
- or line:match("edition.workspace *= *true")
199
- local edition = line:match("^edition *= *(%d+)")
+ local is_in_workspace = line:match("^edition *= *{ *workspace *= *true *}")
+ or line:match("^edition.workspace *= *true")
+ local edition = line:match('^edition *= *"(%d+)"')
200
if is_in_workspace then
201
break
202
elseif edition then
0 commit comments