my rust configuration is :
`;;this is my rust configuration`
​
`;; rust`
​
`;; (use-package rust-mode`
`;; :ensure t)`
​
`(use-package flycheck)`
​
`(use-package rustic`
`:ensure`
`:bind (:map rustic-mode-map`
`("M-j" . lsp-ui-imenu)`
`("M-?" . lsp-find-references)`
`("C-c C-c l" . flycheck-list-errors)`
`("C-c C-c a" . lsp-execute-code-action)`
`("C-c C-c r" . lsp-rename)`
`("C-c C-c q" . lsp-workspace-restart)`
`("C-c C-c Q" . lsp-workspace-shutdown)`
`("C-c C-c s" . lsp-rust-analyzer-status))`
`:config`
`;; uncomment for less flashiness`
`;; (setq lsp-eldoc-hook nil)`
`;; (setq lsp-enable-symbol-highlighting nil)`
`;; (setq lsp-signature-auto-activate nil)`
​
`;; comment to disable rustfmt on save`
`(setq rustic-format-on-save t)`
`;; (add-hook 'rustic-mode-hook 'rk/rustic-mode-hook))`
​
`;;(defun rk/rustic-mode-hook ()`
`;; so that run C-c C-c C-r works without having to confirm, but don't try to`
`;; save rust buffers that are not file visiting. Once`
`;;` [`https://github.com/brotzeit/rustic/issues/253`](https://github.com/brotzeit/rustic/issues/253) `has been resolved this should`
`;; no longer be necessary.`
`;; (when buffer-file-name`
`;; (setq-local buffer-save-without-query t)))`
​
and when i try to save by C-c C-s, the following error is seen
`-any?: Wrong type argument: listp, #s(hash-table size 2 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("scheme" "file" "pattern" #s(hash-table size 2 test equal rehash-size 1.5 rehash-threshold 0.8125 data ("glob" "**/*.rs" "matches" "file"))))`
I really need help, I don't want to use VS code
EDIT:
It seems to be a rustic problem, it worked properly after i removed it. I currently just use rust-mode and rust analyzer
​
EDIT 2
i got the same problem again, it seems like it is not a rustic problem.
the problem seems to be rust-analyzer, when i go to another cargo project and edit main .rs file, it does not let it change. but when i killall emacs and run lsp again in another project, everything is fine