mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 12:05:46 +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};
|
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<()> {
|
pub fn create_dir_if_non_existent(path: &Path) -> crate::Result<()> {
|
||||||
if !path.exists() {
|
if !path.exists() {
|
||||||
println!(
|
println!(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user