Merge pull request #15760 from branchvincent/cargo-type
formula: fix `std_cargo_args` type error
This commit is contained in:
		
						commit
						3dfa8bc98b
					
				@ -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.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user