Skip to content

Commit

Permalink
cargo clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed Jan 9, 2025
1 parent d3c7fe7 commit 80e9511
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions core/engine/src/object/builtins/jspromise.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
//! A Rust API wrapper for Boa's promise Builtin ECMAScript Object
use std::{cell::Cell, future::Future, pin::Pin, task};
use std::{future::Future, pin::Pin, task};

use super::{JsArray, JsFunction};
use crate::{
builtins::{
generator::GeneratorContext,
promise::{PromiseState, ResolvingFunctions},
Promise,
},
job::NativeJob,
js_string,
object::{FunctionObjectBuilder, JsObject},
object::JsObject,
value::TryFromJs,
Context, JsArgs, JsError, JsNativeError, JsResult, JsValue, NativeFunction,
};
Expand Down Expand Up @@ -1161,7 +1159,12 @@ impl JsPromise {
continuation: crate::native_function::NativeCoroutine,
context: &mut Context,
) {
use crate::builtins::async_generator::AsyncGenerator;
use crate::{
builtins::{async_generator::AsyncGenerator, generator::GeneratorContext},
js_string,
object::FunctionObjectBuilder,
};
use std::cell::Cell;

let mut frame = context.vm.frame().clone();
frame.environments = context.vm.environments.clone();
Expand Down

0 comments on commit 80e9511

Please sign in to comment.