Skip to content

Commit

Permalink
Merge pull request #15760 from branchvincent/cargo-type
Browse files Browse the repository at this point in the history
formula: fix `std_cargo_args` type error
  • Loading branch information
carlocab authored Jul 26, 2023
2 parents 62c2c33 + 8b01614 commit 3dfa8bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Library/Homebrew/formula.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1629,9 +1629,11 @@ def std_configure_args
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.
Expand Down

0 comments on commit 3dfa8bc

Please sign in to comment.