mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-15 18:14:02 +00:00
19 lines
277 B
Ruby
19 lines
277 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
def clippy_all
|
|
crates = Dir["*/Cargo.toml"].sort!
|
|
crates.delete_if { |x| x.include?('bareminimum') }
|
|
|
|
crates.each do |x|
|
|
x = File.dirname(x)
|
|
|
|
Dir.chdir(x) do
|
|
system('make clippy')
|
|
end
|
|
end
|
|
end
|
|
|
|
if __FILE__ == $0
|
|
clippy_all()
|
|
end
|