We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f33a715 commit 8dc7300Copy full SHA for 8dc7300
test/rustic-clippy-test.el
@@ -112,7 +112,7 @@
112
(kill-buffer buf)))
113
114
(ert-deftest rustic-test-clippy-fix ()
115
- (let* ((string "fn main() { let s = 1;}")
+ (let* ((string "fn main() { let s = vec![1].first();}")
116
(buf (rustic-test-count-error-helper-new string))
117
(default-directory (file-name-directory (buffer-file-name buf))))
118
(with-current-buffer buf
@@ -121,6 +121,6 @@
121
(buffer (process-buffer proc)))
122
(rustic-test--wait-till-finished rustic-clippy-buffer-name)
123
(revert-buffer t t)
124
- (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();}"))))))
125
126
(provide 'rustic-clippy-test)
0 commit comments