Add EditorConfig rules, fix trailing whitespaces

This commit is contained in:
Zhaofeng Li 2022-01-08 01:20:36 -08:00
parent deca292b53
commit abb74b9f49
8 changed files with 49 additions and 7 deletions

View file

@ -316,7 +316,7 @@ let
else {};
# The final hive will always have the meta key instead of network.
hive = let
hive = let
userMeta = (lib.modules.evalModules {
modules = [ metaOptions uncheckedUserMeta ];
}).config;

View file

@ -400,7 +400,7 @@ impl<'hive> NixInstantiate<'hive> {
/// to generate Nix expressions directly or escaping a JSON string to strip
/// off Nix interpolation.
struct SerializedNixExpresssion {
json_file: TempPath,
json_file: TempPath,
}
impl SerializedNixExpresssion {

View file

@ -106,7 +106,7 @@ pub trait Host: Send + Sync + std::fmt::Debug {
/// If `require_ownership` is false, then the ownership of a key
/// will not be applied if the specified user/group does not
/// exist.
#[allow(unused_variables)]
#[allow(unused_variables)]
async fn upload_keys(&mut self, keys: &HashMap<String, Key>, require_ownership: bool) -> ColmenaResult<()> {
Err(ColmenaError::Unsupported)
}
@ -127,7 +127,7 @@ pub trait Host: Send + Sync + std::fmt::Debug {
}
/// Runs an arbitrary command on the host.
#[allow(unused_variables)]
#[allow(unused_variables)]
async fn run_command(&mut self, command: &[&str]) -> ColmenaResult<()> {
Err(ColmenaError::Unsupported)
}