Skip to content

Commit 8dc7300

Browse files
committed
Fix tests
Behaviour was changed in recent rust version: rust-lang/rust-clippy#13258
1 parent f33a715 commit 8dc7300

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/rustic-clippy-test.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
(kill-buffer buf)))
113113

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

126126
(provide 'rustic-clippy-test)

0 commit comments

Comments
 (0)