#!/bin/bash# Format all sources using rustfmt.# Exit immediately on errors.set-ecd$(dirname"$0")src=$(pwd)# Make sure we can find rustfmt.exportPATH="$PATH:$HOME/.cargo/bin"for crate in$(find"$src" -name Cargo.toml);docd$(dirname"$crate")cargo fmt --"$@"done