Merge pull request #15760 from branchvincent/cargo-type

formula: fix `std_cargo_args` type error
This commit is contained in:
Carlo Cabrera 2023-07-26 14:14:05 +08:00 committed by GitHub
commit 3dfa8bc98b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1629,9 +1629,11 @@ class Formula
end end
# Standard parameters for cargo builds. # 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: ".") def std_cargo_args(root: prefix, path: ".")
["--locked", "--root", root, "--path", path] ["--locked", "--root=#{root}", "--path=#{path}"]
end end
# Standard parameters for CMake builds. # Standard parameters for CMake builds.