mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
don't clone types that are copy (clippy::clone_on_copy)
This commit is contained in:
parent
c5d654d513
commit
048dad8c2e
12 changed files with 18 additions and 28 deletions
|
@ -81,7 +81,7 @@ impl<'a> RenderContext<'a> {
|
|||
}
|
||||
|
||||
fn snippet_cap(&self) -> Option<SnippetCap> {
|
||||
self.completion.config.snippet_cap.clone()
|
||||
self.completion.config.snippet_cap
|
||||
}
|
||||
|
||||
fn db(&self) -> &'a RootDatabase {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue