Skip to content

Commit

Permalink
rust: Fix Homebrew/NoFileutilsRmrf RuboCop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
issyl0 committed Jul 31, 2024
1 parent 512eda7 commit a42931a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Formula/r/rust.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def install
ENV.prepend_path "PATH", buildpath/"cargobootstrap/bin"

cargo_src_path = buildpath/"src/tools/cargo"
cargo_src_path.rmtree
rm_r(cargo_src_path)
resource("cargo").stage cargo_src_path
if OS.mac?
inreplace cargo_src_path/"Cargo.toml",
Expand Down Expand Up @@ -134,12 +134,12 @@ def install
system "make", "install"

(lib/"rustlib/src/rust").install "library"
rm_f [
rm([
bin.glob("*.old"),
lib/"rustlib/install.log",
lib/"rustlib/uninstall.sh",
(lib/"rustlib").glob("manifest-*"),
]
])
end

def post_install
Expand Down

0 comments on commit a42931a

Please sign in to comment.