Move DEFAULT_SHELL to options

This commit is contained in:
David Peter authored and David Peter committed 2021-08-23 21:47:58 +02:00
1 parent 465160b9aa
commit cbfd9f5b41
2 files changed
+7 -10

No files matched your search

+7 -4
View File
@@ -1,7 +1,10 @@
use super::{
types::DEFAULT_SHELL,
units::{Second, Unit},
};
use super::units::{Second, Unit};
#[cfg(not(windows))]
pub const DEFAULT_SHELL: &str = "sh";
#[cfg(windows)]
pub const DEFAULT_SHELL: &str = "cmd.exe";
/// Action to take when an executed command fails.
#[derive(Debug, Clone, Copy, PartialEq)]
-6
View File
@@ -8,12 +8,6 @@ use rust_decimal::Decimal;
use crate::hyperfine::units::Second;
#[cfg(not(windows))]
pub const DEFAULT_SHELL: &str = "sh";
#[cfg(windows)]
pub const DEFAULT_SHELL: &str = "cmd.exe";
#[derive(Debug, Clone, Serialize, Copy, PartialEq, Eq)]
#[serde(untagged)]
pub enum NumericType {