diff options
author | Michael Gattozzi <mgattozzi@gmail.com> | 2019-11-22 10:02:16 -0500 |
---|---|---|
committer | Michael Gattozzi <mgattozzi@gmail.com> | 2019-11-22 10:02:16 -0500 |
commit | 53c05636f77cd9b9c0737e5ab01eddc4bc182fd0 (patch) | |
tree | 18dcd0a8191e961246f40ad7c4fcbe73de07ec5d /shared | |
parent | b966334bf8c67cc82999d8b0962db15c8121bab7 (diff) |
Fix formatting and add checks to pre-commit hook
This enables a pre-commit script and adding more pedantic checks to the
commit. This means from now on all commits will be in a working state in
the history and this enables us to build directly on master without
worrying about it breaking the build. Where we're going we won't need
feature branches anymore. This also fixes formatting issues that existed
but the GitHub actions would not be able to catch at all.
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/lib.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/shared/src/lib.rs b/shared/src/lib.rs index 9fdcc27..138e8d0 100644 --- a/shared/src/lib.rs +++ b/shared/src/lib.rs @@ -1,5 +1,11 @@ -use anyhow::{bail, Result}; -use std::{env, path::PathBuf}; +use anyhow::{ + bail, + Result, +}; +use std::{ + env, + path::PathBuf, +}; pub fn find_root() -> Result<PathBuf> { let mut location = env::current_dir()?; |