From 239a6012eb97e4ec74ad975266436d6eb4ec9bec Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 14 Jul 2020 17:14:00 +0200 Subject: Check licenses --- xtask/src/lib.rs | 2 +- xtask/src/not_bash.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'xtask/src') diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index 747654c1f..94d451e23 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs @@ -20,7 +20,7 @@ use walkdir::{DirEntry, WalkDir}; use crate::{ codegen::Mode, - not_bash::{fs2, pushd, pushenv, rm_rf, run}, + not_bash::{fs2, pushd, pushenv, rm_rf}, }; pub use anyhow::{bail, Context as _, Result}; diff --git a/xtask/src/not_bash.rs b/xtask/src/not_bash.rs index 8844fa216..0f3a56b25 100644 --- a/xtask/src/not_bash.rs +++ b/xtask/src/not_bash.rs @@ -54,7 +54,8 @@ pub mod fs2 { } } -macro_rules! _run { +#[macro_export] +macro_rules! run { ($($expr:expr),*) => { run!($($expr),*; echo = true) }; @@ -65,7 +66,7 @@ macro_rules! _run { $crate::not_bash::run_process(format!($($expr),*), false, Some($stdin)) }; } -pub(crate) use _run as run; +pub use crate::run; pub struct Pushd { _p: (), -- cgit v1.2.3