mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-04 12:22:28 +01:00
Implement trait Default for struct Config
This commit is contained in:
committed by
David Peter
parent
0273848f54
commit
7208a63a49
@@ -21,6 +21,12 @@ pub enum OutputWrap {
|
||||
None,
|
||||
}
|
||||
|
||||
impl Default for OutputWrap {
|
||||
fn default() -> Self {
|
||||
Self::None
|
||||
}
|
||||
}
|
||||
|
||||
impl OutputComponent {
|
||||
pub fn components(self, interactive_terminal: bool) -> &'static [OutputComponent] {
|
||||
match self {
|
||||
@@ -66,7 +72,7 @@ impl FromStr for OutputComponent {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Default)]
|
||||
pub struct OutputComponents(pub HashSet<OutputComponent>);
|
||||
|
||||
impl OutputComponents {
|
||||
|
Reference in New Issue
Block a user