aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/handlers/replace_unwrap_with_match.rs
diff options
context:
space:
mode:
authorMatthias Einwag <[email protected]>2020-09-23 09:03:34 +0100
committerMatthias Einwag <[email protected]>2020-09-23 09:03:34 +0100
commit145bd6f70138246b4e5efebcd94786f147ac9e7a (patch)
tree120e380da28da851bc4ad632a009b4d14ccc1b65 /crates/assists/src/handlers/replace_unwrap_with_match.rs
parent501b516db4a9a50c39e2fb90b389d77c9541e43f (diff)
Fix clearing the token
The previous version would have interpreted an empty token as an abort of the dialog and would have not properly cleared the token. This is now fixed by checking for `undefined` for a an abort and by setting the token to `undefined` in order to clear it.
Diffstat (limited to 'crates/assists/src/handlers/replace_unwrap_with_match.rs')
0 files changed, 0 insertions, 0 deletions