1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-17 02:25:17 +00:00
starship/src/modules/line_break.rs

17 lines
353 B
Rust
Raw Normal View History

2019-04-05 00:33:36 +00:00
use super::Segment;
use crate::context::Context;
2019-04-05 00:33:36 +00:00
/// Creates a segment for the line break
pub fn segment(_context: &Context) -> Option<Segment> {
2019-04-05 00:33:36 +00:00
const LINE_ENDING: &str = "\n";
2019-04-12 23:11:40 +00:00
let mut segment = Segment::new("line_break");
2019-04-13 03:06:48 +00:00
segment
.set_value(LINE_ENDING)
.set_prefix(None)
.set_suffix(None);
Some(segment)
2019-04-05 00:33:36 +00:00
}