formula: fix std_cargo_args type error

This commit is contained in:
Branch Vincent 2023-07-25 20:20:22 -07:00
parent 471e733641
commit 8b016141cd
No known key found for this signature in database

View File

@ -1629,9 +1629,11 @@ class Formula
end
# Standard parameters for cargo builds.
sig { params(root: T.any(String, Pathname), path: String).returns(T::Array[T.any(String, Pathname)]) }
sig {
params(root: T.any(String, Pathname), path: T.any(String, Pathname)).returns(T::Array[String])
}
def std_cargo_args(root: prefix, path: ".")
["--locked", "--root", root, "--path", path]
["--locked", "--root=#{root}", "--path=#{path}"]
end
# Standard parameters for CMake builds.