diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-22 14:06:23 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-22 14:18:25 +0200 |
commit | 860f2d806f9dd29b58b3ee92aebcdcd1211e2619 (patch) | |
tree | 02ad12fe76fc66f154f2b96f399a2f0654131b4b /components/script/dom | |
parent | dabecfade6e5e25f21cbf7e44d4e85793dfb89bc (diff) | |
download | servo-860f2d806f9dd29b58b3ee92aebcdcd1211e2619.tar.gz servo-860f2d806f9dd29b58b3ee92aebcdcd1211e2619.zip |
Rename Promise::is_settled to Promise::is_fulfilled
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/promise.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/promise.rs b/components/script/dom/promise.rs index 8baed5b5b69..e038d9ff4ca 100644 --- a/components/script/dom/promise.rs +++ b/components/script/dom/promise.rs @@ -187,7 +187,7 @@ impl Promise { } #[allow(unsafe_code)] - pub fn is_settled(&self) -> bool { + pub fn is_fulfilled(&self) -> bool { let state = unsafe { GetPromiseState(self.promise_obj()) }; match state { PromiseState::Rejected | PromiseState::Fulfilled => true, |