docs: Update configuration example

`sha` was renamed to `rev` in pre-commit 1.9.0.

This also changes URLs to use https:// instead of git://, which
works better behind a firewall.
This commit is contained in:
Hugo Locurcio 2018-10-16 15:10:44 +02:00
parent b10a4b5541
commit f56e09d387
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -1,12 +1,12 @@
# Rust hooks for pre-commit # Rust hooks for pre-commit
[Rust](https://www.rust-lang.org) tools package for [pre-commit](http://pre-commit.com). [Rust](https://www.rust-lang.org) tools package for [pre-commit](https://pre-commit.com).
## Using rust tools with pre-commit ## Using rust tools with pre-commit
```yaml ```yaml
- repo: git://github.com/doublify/pre-commit-rust - repo: https://github.com/doublify/pre-commit-rust
sha: master rev: master
hooks: hooks:
- id: fmt - id: fmt
``` ```