Rustでcargo fix時に出たエラーの原因と対応

はじめに

  • rustfixというツールを使用してcargo fixcargo clippy --fix実行時に以下のようなエラーが発生した

      error: no VCS found for this package and `cargo fix` can potentially perform destructive changes; if you'd like to suppress this error pass `--allow-no-vcs`
    
  • その原因と対処について調べたので自分への備忘録として記事にしました。

原因

対処