This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |