GnoCiYeH 1 jaar geleden
bovenliggende
commit
36198c193b
3 gewijzigde bestanden met toevoegingen van 12 en 3 verwijderingen
  1. 9 0
      .github/workflows/rust.yml
  2. 2 2
      rust-toolchain.toml
  3. 1 1
      src/config/mod.rs

+ 9 - 0
.github/workflows/rust.yml

@@ -27,3 +27,12 @@ jobs:
     - uses: actions/checkout@v3
     - name: Build
       run: make build-dragonos
+
+  fmt-check:
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v3
+    - name: Build
+      run: make fmt-check

+ 2 - 2
rust-toolchain.toml

@@ -1,3 +1,3 @@
 [toolchain]
-components = ["rust-src"]
-targets = [ "x86_64-unknown-linux-musl" ]
+components = ["rust-src", "rustfmt"]
+targets = [ "x86_64-unknown-linux-musl" ]

+ 1 - 1
src/config/mod.rs

@@ -1,3 +1,3 @@
+pub mod appconfig;
 pub mod cmd;
 pub mod lastline_cmd;
-pub mod appconfig;