mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-18 23:02:35 +03:00
fix clippy warning on not windows
This commit is contained in:
parent
62b26ad705
commit
7d7671f126
@ -14,7 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
use leo_errors::{CliError, Result};
|
||||
use leo_errors::Result;
|
||||
|
||||
use std::{fmt, sync::Once};
|
||||
|
||||
@ -214,7 +214,7 @@ where
|
||||
pub fn init_logger(_app_name: &'static str, verbosity: usize) -> Result<()> {
|
||||
// This line enables Windows 10 ANSI coloring API.
|
||||
#[cfg(target_family = "windows")]
|
||||
ansi_term::enable_ansi_support().map_err(|_| CliError::failed_to_enable_ansi_support())?;
|
||||
ansi_term::enable_ansi_support().map_err(|_| leo_errors::CliError::failed_to_enable_ansi_support())?;
|
||||
|
||||
use tracing_subscriber::fmt::writer::MakeWriterExt;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user