]> git.lizzy.rs Git - rust.git/commit
allow local variables to be used after extracted body
authorVladyslav Katasonov <cpud47@gmail.com>
Wed, 3 Feb 2021 17:31:12 +0000 (20:31 +0300)
committerVladyslav Katasonov <cpud47@gmail.com>
Wed, 3 Feb 2021 18:11:12 +0000 (21:11 +0300)
commit82787febdee3e7dfe5a96c94aee03cd726f642f9
tree1fa901e779885b9ad79a6f691335352388d55691
parent313aa5f3a2a9237c96c97c5852da39cf83bcb1ae
allow local variables to be used after extracted body

when variable is defined inside extracted body
export this variable to original scope via return value(s)
crates/assists/src/handlers/extract_function.rs