Skip to content

Commit

Permalink
Merge pull request #30 from emacs-rustic/bump-rust
Browse files Browse the repository at this point in the history
CI: Bump tested rust version
  • Loading branch information
psibi authored Aug 16, 2024
2 parents 844c9fd + b205a43 commit 0007e87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.76.0
toolchain: 1.80.1
components: clippy, rustfmt

- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ rust-mode:
(setq rust-mode-treesitter-derive t))
```

And make to have rustic load after rust-mode:
And then make sure to have rustic load after rust-mode:

``` emacs-lisp
(use-package rustic
Expand Down
4 changes: 2 additions & 2 deletions test/rustic-clippy-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
(kill-buffer buf)))

(ert-deftest rustic-test-clippy-fix ()
(let* ((string "fn main() { let s = 1;}")
(let* ((string "fn main() { let s = vec![1].first();}")
(buf (rustic-test-count-error-helper-new string))
(default-directory (file-name-directory (buffer-file-name buf))))
(with-current-buffer buf
Expand All @@ -121,6 +121,6 @@
(buffer (process-buffer proc)))
(rustic-test--wait-till-finished rustic-clippy-buffer-name)
(revert-buffer t t)
(should (string= (buffer-string) "#![allow(non_snake_case)]\nfn main() { let _s = 1;}"))))))
(should (string= (buffer-string) "#![allow(non_snake_case)]\nfn main() { let s = [1].first();}"))))))

(provide 'rustic-clippy-test)

0 comments on commit 0007e87

Please sign in to comment.