blob: 18ed5cc11f294cc0aec1384ba1ec332584b879df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
use std::default::Default;
#[derive(Clone, Copy)]
pub struct Config {
pub indent_level: usize,
pub show_ranges: bool,
pub show_src: bool,
pub show_field_name: bool,
}
impl Default for Config {
fn default() -> Self {
Config::new()
}
}
impl Config {
fn new() -> Self {
Self {
indent_level: 2,
show_ranges: true,
show_src: true,
show_field_name: true,
}
}
}
|