You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
List of keywords you searched for before creating this issue. Write them down here so that others can find this issue more easily and help provide feedback.
“fmt”
From a quick look, the docs don’t seem to mention a specific version of cargo (unless I missed it). The latest version seems to use cargo fix vs cargo fmt which breaks the cargo-fmt pre-commit command unless you skip it.
The text was updated successfully, but these errors were encountered:
By "latest version", do you mean the rust nightly? I just tried running cargo fmt and that runs just fine locally.
We do specify a cargo version in the rust-toolchain.toml which is the version that cargo should pick up by default, unless you have an active override.
Ah, looks like if you install via homebrew, you need to install rustfmt as well.
% cargo --version
cargo 1.79.0
% cargo fmt
error: no such command: `fmt`
Did you mean `fix`?
View all installed commands with `cargo --list`
Find a package to install `fmt` with `cargo search cargo-fmt
“fmt”
From a quick look, the docs don’t seem to mention a specific version of cargo (unless I missed it). The latest version seems to use
cargo fix
vscargo fmt
which breaks thecargo-fmt
pre-commit command unless you skip it.The text was updated successfully, but these errors were encountered: