Fix function calls

This commit is contained in:
Alan Du 2018-10-17 19:25:37 -04:00
parent fc8024de51
commit a5da770ec6
10 changed files with 9 additions and 12 deletions

View file

@ -58,7 +58,7 @@ pub fn join_lines(file: &File, range: TextRange) -> LocalEdit {
pub fn on_enter(file: &File, offset: TextUnit) -> Option<LocalEdit> {
let comment = find_leaf_at_offset(file.syntax(), offset)
.left_biased()
.and_then(|it| ast::Comment::cast(it))?;
.and_then(ast::Comment::cast)?;
if let ast::CommentFlavor::Multiline = comment.flavor() {
return None;