Use read()
over read_with()
to improve readability in simple cases (#31263)
Release Notes: - N/A
This commit is contained in:
parent
e88cad29e5
commit
6206150e27
5 changed files with 11 additions and 18 deletions
|
@ -349,9 +349,7 @@ impl DebugPanel {
|
|||
window: &mut Window,
|
||||
cx: &mut Context<Self>,
|
||||
) {
|
||||
while let Some(parent_session) =
|
||||
curr_session.read_with(cx, |session, _| session.parent_session().cloned())
|
||||
{
|
||||
while let Some(parent_session) = curr_session.read(cx).parent_session().cloned() {
|
||||
curr_session = parent_session;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue