Skip to content

Instantly share code, notes, and snippets.

View valarauca's full-sized avatar

Cody Laeder valarauca

  • San Jose CA
View GitHub Profile
impl<'i, B> FromPercentEncoded<'i> for Cow<'i, B>
where
B: ToOwned,
&'i B: FromPercentEncoded<'i>,
<&'i B as FromPercentEncoded<'i>>::StrError: MaybeCannotGrowError,
<&'i B as FromPercentEncoded<'i>>::BytesError: MaybeCannotGrowError,
B::Owned: FromPercentEncoded<'i>,
{
type BytesError = CowError<
<B::Owned as FromPercentEncoded<'i>>::BytesError,
#!/usr/bin/env bash
shopt -slastpipe
declare -i last_n="${1}"
git log -n $last_n | awk '$1 == "commit" { print $2 }' | readarray -t commits
for commit in "${commits[@]}"
do
git checkout "$commit" &>/dev/null
cargo clean &>/dev/null