mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-04 04:03:22 +03:00
Source: fix ast-grep warnings
Fix a case missed by commit66cfa81885(Source: fix ast-grep warnings, 2026-09-26) due to a logical conflict with commitd1d6e6d69d(Source: reduce stringstreams usage, 2026-09-24) before the check was enabled by commit5825a86329(ci: Add lint job to run ast-grep on our C++ code, 2026-09-28).
This commit is contained in:
1 parent
088e8fca17
commit
a30ace907e
1 file changed
+1
-1
@@ -721,7 +721,7 @@ void cmCommonTargetGenerator::ComputeRustFlagsForObjects(
|
||||
// common usage in Rust.
|
||||
std::string objStem = objPath.stem().string();
|
||||
objStem = objStem.substr(3, objStem.length() - 6);
|
||||
linkCrates = cmStrCat(std::move(linkCrates), " --extern=", objStem, "=",
|
||||
linkCrates = cmStrCat(std::move(linkCrates), " --extern=", objStem, '=',
|
||||
this->LocalCommonGenerator->ConvertToOutputFormat(
|
||||
obj, cmOutputConverter::SHELL));
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user