mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-19 01:50:32 +00:00
internal: remove deprecated method
This commit is contained in:
parent
9c74a5b2c0
commit
d5c5b7cd12
2 changed files with 4 additions and 4 deletions
|
@ -58,9 +58,6 @@ impl ast::BlockExpr {
|
|||
self.stmt_list().into_iter().flat_map(|it| it.items())
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.statements().next().is_none() && self.tail_expr().is_none()
|
||||
}
|
||||
pub fn statements(&self) -> impl Iterator<Item = ast::Stmt> {
|
||||
self.stmt_list().into_iter().flat_map(|it| it.statements())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue