Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
anderslanglands committed Dec 4, 2023
1 parent d9cb990 commit 9f01d54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/rust/bbl-rust.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <set>
#include <stdio.h>


using namespace babble;

static auto builtin_to_string(bbl_builtin_t builtin,
Expand Down Expand Up @@ -225,7 +224,7 @@ BBL_PLUGIN_API int bbl_plugin_exec(bbl_context_t cpp_ctx,

C_API capi(capi_);

std::string source = "";
std::string source = "";

std::set<std::string> imports;
for (auto mod : capi.modules()) {
Expand Down Expand Up @@ -321,7 +320,7 @@ BBL_PLUGIN_API int bbl_plugin_exec(bbl_context_t cpp_ctx,
}
}

source = fmt::format("{}}}\n\n", source);
source = fmt::format("{}}}\n\n", source);
}

std::string import_str;
Expand All @@ -336,7 +335,8 @@ BBL_PLUGIN_API int bbl_plugin_exec(bbl_context_t cpp_ctx,
// printf("%s", source.c_str());

if (!std::string(output_path).empty()) {
std::string filename = fmt::format("{}/{}.rs", output_path, project_name);
std::string filename =
fmt::format("{}/{}.rs", output_path, project_name);
std::ofstream file;
file.open(filename);
file << source;
Expand Down

0 comments on commit 9f01d54

Please sign in to comment.