summaryrefslogtreecommitdiffstats
path: root/src/segment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/segment.rs')
-rw-r--r--src/segment.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/segment.rs b/src/segment.rs
index 8419ec31e..ebae80d51 100644
--- a/src/segment.rs
+++ b/src/segment.rs
@@ -6,7 +6,7 @@ use std::fmt;
/// (e.g. The version that software is running).
pub struct Segment {
/// The segment's name, to be used in configuration and logging.
- name: String,
+ _name: String,
/// The segment's style. If None, will inherit the style of the module containing it.
style: Option<Style>,
@@ -19,7 +19,7 @@ impl Segment {
/// Creates a new segment with default fields.
pub fn new(name: &str) -> Self {
Self {
- name: name.to_string(),
+ _name: name.to_string(),
style: None,
value: "".to_string(),
}