if test -d "$HOME/.cargo/bin"; then
  export PATH="${PATH}:$HOME/.cargo/bin"
fi

if test -d "$HOME/.cargo/bin"; then
  export PATH="$HOME/.cargo/bin:${PATH}"
fi

Put cargo path in front of $PATH
[rust] Put cargo path in front of $PATH

This makes it easier to override regular commands.
