Skip to content

Commit b1b3127

Browse files
committed
stamp: cleanup (2)
1 parent 4f06dae commit b1b3127

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

crates/base/tests/integration_tests.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,21 +2799,21 @@ async fn test_tmp_fs_should_not_be_available_in_import_stmt() {
27992799
#[tokio::test]
28002800
#[serial]
28012801
async fn test_supabase_ai_gte() {
2802-
let tb = TestBedBuilder::new("./test_cases/main")
2803-
.with_per_worker_policy(None)
2804-
.build()
2805-
.await;
2802+
let tb = TestBedBuilder::new("./test_cases/main")
2803+
.with_per_worker_policy(None)
2804+
.build()
2805+
.await;
28062806

2807-
let resp = tb
2808-
.request(|b| {
2809-
b.uri("/supabase-ai")
2810-
.body(Body::empty())
2811-
.context("can't make request")
2812-
})
2813-
.await
2814-
.unwrap();
2807+
let resp = tb
2808+
.request(|b| {
2809+
b.uri("/supabase-ai")
2810+
.body(Body::empty())
2811+
.context("can't make request")
2812+
})
2813+
.await
2814+
.unwrap();
28152815

2816-
assert_eq!(resp.status().as_u16(), StatusCode::OK);
2816+
assert_eq!(resp.status().as_u16(), StatusCode::OK);
28172817
}
28182818

28192819
// -- ext_ai: ORT @huggingface/transformers

ext/ai/utilities/lib.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ use std::sync::Once;
33
use deno_core::v8;
44

55
pub fn v8_init() {
6-
let platform = v8::new_unprotected_default_platform(0, false).make_shared();
7-
v8::V8::initialize_platform(platform);
8-
v8::V8::initialize();
6+
let platform = v8::new_unprotected_default_platform(0, false).make_shared();
7+
v8::V8::initialize_platform(platform);
8+
v8::V8::initialize();
99
}
1010

1111
pub fn v8_shutdown() {
12-
// SAFETY: this is safe, because all isolates have been shut down already.
13-
unsafe {
14-
v8::V8::dispose();
15-
}
16-
v8::V8::dispose_platform();
12+
// SAFETY: this is safe, because all isolates have been shut down already.
13+
unsafe {
14+
v8::V8::dispose();
15+
}
16+
v8::V8::dispose_platform();
1717
}
1818

1919
pub fn v8_do(f: impl FnOnce()) {
20-
static V8_INIT: Once = Once::new();
21-
V8_INIT.call_once(|| {
22-
v8_init();
23-
});
24-
f();
25-
// v8_shutdown();
20+
static V8_INIT: Once = Once::new();
21+
V8_INIT.call_once(|| {
22+
v8_init();
23+
});
24+
f();
25+
// v8_shutdown();
2626
}

0 commit comments

Comments
 (0)