Skip to content

Commit 787c642

Browse files
committed
Fixed formatting
1 parent f1247dd commit 787c642

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

crates/js/build.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,7 @@ fn main() {
8181
copy_bundle(UNIFIED_BUNDLE, true, &crate_dir, &dist_dir, &out_dir);
8282
}
8383

84-
fn copy_bundle(
85-
filename: &str,
86-
required: bool,
87-
crate_dir: &Path,
88-
dist_dir: &Path,
89-
out_dir: &Path,
90-
) {
84+
fn copy_bundle(filename: &str, required: bool, crate_dir: &Path, dist_dir: &Path, out_dir: &Path) {
9185
let primary = dist_dir.join(filename);
9286
let fallback = crate_dir.join("dist").join(filename);
9387
let target = out_dir.join(filename);

crates/js/src/bundle.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ pub enum TsjsBundle {
2121
Unified,
2222
}
2323

24-
const METAS: [TsjsMeta; TSJS_BUNDLE_COUNT] = [
25-
TsjsMeta::new("tsjs-unified.js", include_str!(concat!(env!("OUT_DIR"), "/tsjs-unified.js"))),
26-
];
24+
const METAS: [TsjsMeta; TSJS_BUNDLE_COUNT] = [TsjsMeta::new(
25+
"tsjs-unified.js",
26+
include_str!(concat!(env!("OUT_DIR"), "/tsjs-unified.js")),
27+
)];
2728

28-
const ALL_BUNDLES: [TsjsBundle; TSJS_BUNDLE_COUNT] = [
29-
TsjsBundle::Unified,
30-
];
29+
const ALL_BUNDLES: [TsjsBundle; TSJS_BUNDLE_COUNT] = [TsjsBundle::Unified];
3130

3231
impl TsjsBundle {
3332
pub const COUNT: usize = TSJS_BUNDLE_COUNT;
@@ -49,7 +48,8 @@ impl TsjsBundle {
4948
}
5049

5150
pub(crate) fn filename_map() -> &'static std::collections::HashMap<&'static str, TsjsBundle> {
52-
static MAP: std::sync::OnceLock<std::collections::HashMap<&'static str, TsjsBundle>> = std::sync::OnceLock::new();
51+
static MAP: std::sync::OnceLock<std::collections::HashMap<&'static str, TsjsBundle>> =
52+
std::sync::OnceLock::new();
5353

5454
MAP.get_or_init(|| {
5555
ALL_BUNDLES

0 commit comments

Comments
 (0)