Skip to content

Commit db15eb0

Browse files
committed
format rust
1 parent 4701e72 commit db15eb0

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

rewatch/src/build/compile.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,8 @@ fn compile_file(
578578
ast_path.to_string_lossy()
579579
)),
580580
}?;
581-
let basename = helpers::file_path_to_compiler_asset_basename(implementation_file_path, &package.namespace);
581+
let basename =
582+
helpers::file_path_to_compiler_asset_basename(implementation_file_path, &package.namespace);
582583
let has_interface = module.get_interface().is_some();
583584
let is_type_dev = module.is_type_dev;
584585
let to_mjs_args = compiler_args(
@@ -635,10 +636,7 @@ fn compile_file(
635636
ocaml_build_path_abs.join(format!("{basename}.cmi")),
636637
);
637638
let _ = std::fs::copy(
638-
package
639-
.get_build_path()
640-
.join(dir)
641-
.join(format!("{basename}.cmj")),
639+
package.get_build_path().join(dir).join(format!("{basename}.cmj")),
642640
ocaml_build_path_abs.join(format!("{basename}.cmj")),
643641
);
644642
println!("[rewatch] Copying file {basename} to ocaml build path");
@@ -661,10 +659,7 @@ fn compile_file(
661659
ocaml_build_path_abs.join(format!("{basename}.cmti")),
662660
);
663661
let _ = std::fs::copy(
664-
package
665-
.get_build_path()
666-
.join(dir)
667-
.join(format!("{basename}.cmi")),
662+
package.get_build_path().join(dir).join(format!("{basename}.cmi")),
668663
ocaml_build_path_abs.join(format!("{basename}.cmi")),
669664
);
670665
}

0 commit comments

Comments
 (0)