TrueDoctor / DiscoBot

A sipmle Discord Bot, interfacing to the DSA "Heldensoftware", for a minimalistic and low labor aproach to digitalize p&p rpg's
https://kobert.dev/dsa
2 stars 0 forks source link

Formatting needed on frontend #50

Closed TrueDoctor closed 5 years ago

TrueDoctor commented 5 years ago

Build 'Ratatosk' is failing!

Last 50 lines of build output:

[...truncated 16.87 KB...]
+            }
+        ),
+        "",
+    );
 }

 pub fn init_logger() {
Diff in /home/runner/workspace/Ratatosk/webhogg/wasm/src/logger.rs at line 21:
-    fern::Dispatch::new().format(|out, message, record|{
-        out.finish(format_args!(
+    fern::Dispatch::new()
+        .format(|out, message, record| {
+            out.finish(format_args!(
                 "%c{}%c {} > {}",
                 record.level(),
                 record.target(),
Diff in /home/runner/workspace/Ratatosk/webhogg/wasm/src/logger.rs at line 26:
                 message
-                )
-            )
+            ))
         })
         .level(log::LevelFilter::Debug)
         .chain(fern::Output::call(log))
Diff in /home/runner/workspace/Ratatosk/webhogg/wasm/src/logger.rs at line 32:
-        .apply().unwrap();
+        .apply()
+        .unwrap();
 }

Diff in /home/runner/workspace/Ratatosk/webhogg/wasm/src/logic.rs at line 1:
-use wasm_bindgen::prelude::*;
-use log::*;
 use crate::*;
+use log::*;
+use wasm_bindgen::prelude::*;

 #[wasm_bindgen]
 pub fn start_logic() {
Diff in /home/runner/workspace/Ratatosk/webhogg/wasm/src/logic.rs at line 9:

     match context::logic::LogicContext::new() {
         Ok(ctx) => context::set_logic(ctx),
-        Err(e) => error!("logic {}", e)
+        Err(e) => error!("logic {}", e),
     }
 }

Build step 'Run with timeout' marked build as failure

Changes since last successful build: No changes No changes No changes

View full output

nat-rix commented 5 years ago

This won't change for a while since I want to get the frontend working first

Ma27 commented 5 years ago

Can't we just use some kind of automated formatting for our code? :)

TrueDoctor commented 5 years ago

Yes we can, it is called rust-fmt, I have just enabled stricter guidelines to enforce the usage of these tools

TrueDoctor commented 5 years ago

Build was fixed!