Skip to content
Snippets Groups Projects
Commit 434defab authored by Bryan Chen's avatar Bryan Chen
Browse files

add githooks and format

parent cbcd4822
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
set -e
REPO_ROOT_DIR="$(git rev-parse --show-toplevel)"
files=$((git diff --cached --name-only --diff-filter=ACMR | grep -Ei "\.rs$") || true)
if [ ! -z "${files}" ]; then
cargo fmt --all
git add $(echo "$files" | paste -s -d " " -)
fi
fn main() { fn main() {}
}
#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(not(feature = "std"), no_std)]
pub trait MultiCurrency { pub trait MultiCurrency {}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment