Skip to content

Commit

Permalink
add clang-format to treefmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored and mergify[bot] committed Aug 6, 2023
1 parent 0c4f509 commit 61a5d81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
projectRootFile = "flake.lock";

programs.rustfmt.enable = true;
programs.clang-format.enable = true;

settings.formatter = {
nix = {
Expand Down
3 changes: 2 additions & 1 deletion libnixstore/src/nix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ rust::String get_build_log(rust::Str derivation_path) {
rust::String get_nar_list(rust::Str store_path) {
nlohmann::json j = {
{"version", 1},
{"root", listNar(get_store()->getFSAccessor(), STRING_VIEW(store_path), true)},
{"root",
listNar(get_store()->getFSAccessor(), STRING_VIEW(store_path), true)},
};

return j.dump();
Expand Down

0 comments on commit 61a5d81

Please sign in to comment.