Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dunitrust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nodes
rust
Dunitrust
Commits
2d56ee1d
Commit
2d56ee1d
authored
6 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[doc] upgrade fmt installation method
parent
1942552a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CONTRIBUTING.md
+1
-17
1 addition, 17 deletions
CONTRIBUTING.md
with
1 addition
and
17 deletions
CONTRIBUTING.md
+
1
−
17
View file @
2d56ee1d
...
@@ -19,29 +19,13 @@ Please note we have a specific workflow, please follow it in all your interactio
...
@@ -19,29 +19,13 @@ Please note we have a specific workflow, please follow it in all your interactio
`rustfmt` is a tool applying Rust idiomatic code style to your files automatically.
`rustfmt` is a tool applying Rust idiomatic code style to your files automatically.
If you're using rust 1.24 or greater :
```bash
```bash
# Install rustfmt through rustup
# Install rustfmt through rustup
rustup component add rustfmt
rustup component add rustfmt
-preview --toolchain nightly
# Run rustfmt
# Run rustfmt
cargo fmt
cargo fmt
```
```
If you're using rust 1.23 or lower :
```bash
# Install nightly toolchain
rustup install nightly
# Install rustfmt through cargo
cargo +nightly install rustfmt
# Run rustfmt
cargo +nightly fmt
```
> If you switch from 1.23 to 1.24, uninstall `rustfmt` from cargo and install it back with
> `rustup`
-
Use
`clippy`
.
-
Use
`clippy`
.
`clippy` is a linting tool scanning your code to find common mistakes or bad code.
`clippy` is a linting tool scanning your code to find common mistakes or bad code.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment