starship/src/modules/mod.rs

12 lines
187 B
Rust
Raw Normal View History

2019-04-04 00:14:26 +00:00
mod char;
use crate::Segment;
pub fn handle(module: &str) -> Segment {
match module {
"char" => char::segment(),
_ => panic!("Unknown module: {}", module),
}
}