about summary refs log tree commit diff
path: root/third_party/nix/src/nix/optimise-store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix/optimise-store.cc')
-rw-r--r--third_party/nix/src/nix/optimise-store.cc41
1 files changed, 13 insertions, 28 deletions
diff --git a/third_party/nix/src/nix/optimise-store.cc b/third_party/nix/src/nix/optimise-store.cc
index 725fb75a19ec..49871df680bc 100644
--- a/third_party/nix/src/nix/optimise-store.cc
+++ b/third_party/nix/src/nix/optimise-store.cc
@@ -1,41 +1,26 @@
+#include <atomic>
 #include "command.hh"
 #include "shared.hh"
 #include "store-api.hh"
 
-#include <atomic>
-
 using namespace nix;
 
-struct CmdOptimiseStore : StoreCommand
-{
-    CmdOptimiseStore()
-    {
-    }
+struct CmdOptimiseStore : StoreCommand {
+  CmdOptimiseStore() {}
 
-    std::string name() override
-    {
-        return "optimise-store";
-    }
+  std::string name() override { return "optimise-store"; }
 
-    std::string description() override
-    {
-        return "replace identical files in the store by hard links";
-    }
+  std::string description() override {
+    return "replace identical files in the store by hard links";
+  }
 
-    Examples examples() override
-    {
-        return {
-            Example{
-                "To optimise the Nix store:",
-                "nix optimise-store"
-            },
-        };
-    }
+  Examples examples() override {
+    return {
+        Example{"To optimise the Nix store:", "nix optimise-store"},
+    };
+  }
 
-    void run(ref<Store> store) override
-    {
-        store->optimiseStore();
-    }
+  void run(ref<Store> store) override { store->optimiseStore(); }
 };
 
 static RegisterCommand r1(make_ref<CmdOptimiseStore>());