diff options
author | Bernardo Meurer | 2021-01-24 23:38:44 -0800 |
---|---|---|
committer | Bernardo Meurer | 2021-01-26 10:33:05 -0800 |
commit | 815814529eec6f739eb1618fdf356e526b3879e1 (patch) | |
tree | 2e96e8eac1edf1742ea60b9f00e8df768d409b3b /src/bin | |
parent | c00e29a39df47c8cdba8c4bb43868a27f32df3b8 (diff) |
changed: remove 2015-style extern crate
Diffstat (limited to '')
-rw-r--r-- | src/bin/activate.rs | 5 | ||||
-rw-r--r-- | src/bin/deploy.rs | 11 |
2 files changed, 4 insertions, 12 deletions
diff --git a/src/bin/activate.rs b/src/bin/activate.rs index 2f13b44..947e883 100644 --- a/src/bin/activate.rs +++ b/src/bin/activate.rs @@ -20,10 +20,7 @@ use notify::{RecommendedWatcher, RecursiveMode, Watcher}; use thiserror::Error; -#[macro_use] -extern crate log; - -extern crate serde_derive; +use log::{debug, error, info, warn}; /// Remote activation utility for deploy-rs #[derive(Clap, Debug)] diff --git a/src/bin/deploy.rs b/src/bin/deploy.rs index caf3d4e..3ee2ec2 100644 --- a/src/bin/deploy.rs +++ b/src/bin/deploy.rs @@ -7,16 +7,11 @@ use std::io::{stdin, stdout, Write}; use clap::Clap; +use log::{debug, error, info, warn}; +use serde::Serialize; use std::process::Stdio; -use tokio::process::Command; - use thiserror::Error; - -#[macro_use] -extern crate log; - -#[macro_use] -extern crate serde_derive; +use tokio::process::Command; /// Simple Rust rewrite of a simple Nix Flake deployment tool #[derive(Clap, Debug)] |