mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 11:35:45 +00:00
Removing unused macros
This commit is contained in:
parent
44e0fcc985
commit
8f7f812e87
16
src/utils.rs
16
src/utils.rs
@ -7,22 +7,6 @@ use std::{
|
||||
|
||||
use crate::{oof, OVERWRITE_CONFIRMATION};
|
||||
|
||||
#[macro_export]
|
||||
#[cfg(debug_assertions)]
|
||||
macro_rules! debug {
|
||||
($x:expr) => {
|
||||
dbg!($x)
|
||||
};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
#[cfg(not(debug_assertions))]
|
||||
macro_rules! debug {
|
||||
($x:expr) => {
|
||||
std::convert::identity($x)
|
||||
};
|
||||
}
|
||||
|
||||
pub fn create_dir_if_non_existent(path: &Path) -> crate::Result<()> {
|
||||
if !path.exists() {
|
||||
println!(
|
||||
|
Loading…
x
Reference in New Issue
Block a user