mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 20:01:33 +00:00
Remove redundant run_until_parked call in Foreground::advance_clock
This commit is contained in:
parent
a14b626927
commit
36f8c68099
1 changed files with 1 additions and 4 deletions
|
@ -532,10 +532,7 @@ impl Foreground {
|
||||||
#[cfg(any(test, feature = "test-support"))]
|
#[cfg(any(test, feature = "test-support"))]
|
||||||
pub fn advance_clock(&self, duration: Duration) {
|
pub fn advance_clock(&self, duration: Duration) {
|
||||||
match self {
|
match self {
|
||||||
Self::Deterministic { executor, .. } => {
|
Self::Deterministic { executor, .. } => executor.advance_clock(duration),
|
||||||
executor.run_until_parked();
|
|
||||||
executor.advance_clock(duration);
|
|
||||||
}
|
|
||||||
_ => panic!("this method can only be called on a deterministic executor"),
|
_ => panic!("this method can only be called on a deterministic executor"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue