From b4859e817ea993599e8fb1d47b8ec57db818a7ab Mon Sep 17 00:00:00 2001 From: Jaroslaw Konik Date: Wed, 21 Jun 2023 17:01:19 +0200 Subject: [PATCH] Cleanup --- src/promise.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/promise.rs b/src/promise.rs index fb9cd7a..0040570 100644 --- a/src/promise.rs +++ b/src/promise.rs @@ -4,14 +4,12 @@ use std::sync::{Arc, Mutex}; use rhai::{Dynamic, NativeCallContextStore}; use rhai::{EvalAltResult, FnPtr}; -// TODO: This should not be public /// A struct that represents a function that will get called when the Promise is resolved. pub(crate) struct PromiseCallback { callback: Dynamic, following_promise: Arc>, } -// TODO: This should not be public /// Internal representation of a Promise. pub(crate) struct PromiseInner { pub(crate) callbacks: Vec,