]> git.lizzy.rs Git - rust.git/commit
use `&T` for non copy params of extracted function
authorVladyslav Katasonov <cpud47@gmail.com>
Thu, 4 Feb 2021 22:18:45 +0000 (01:18 +0300)
committerVladyslav Katasonov <cpud47@gmail.com>
Thu, 4 Feb 2021 22:41:40 +0000 (01:41 +0300)
commit0ff74467c0d107a0b9472e928f9f0845f68be088
treef44778c3e38e4520b34a4431853d974c909f8704
parentd9b122858b8a454c23dbeab0971571ce0b38aeec
use `&T` for non copy params of extracted function

Use shared ref if param is not `T: Copy` and is used after body
crates/assists/src/handlers/extract_function.rs