From 2fe77f52717e9b688a2e2f4c57c0404022a3afee Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Mon, 19 Jul 2021 21:26:52 -0400 Subject: [PATCH] Formula: Allow configuration of std_cargo_args --- Library/Homebrew/formula.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 1a4540ea31..a368b9a532 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1479,9 +1479,9 @@ class Formula end # Standard parameters for cargo builds. - sig { returns(T::Array[T.any(String, Pathname)]) } - def std_cargo_args - ["--locked", "--root", prefix, "--path", "."] + sig { params(root: String, path: String).returns(T::Array[T.any(String, Pathname)]) } + def std_cargo_args(root: prefix, path: ".") + ["--locked", "--root", root, "--path", path] end # Standard parameters for CMake builds.