Rename human-readable layer types (#117)

This commit is contained in:
Keavon Chambers 2021-05-07 21:13:22 -07:00
parent 4975a4e737
commit 34036e42ee
1 changed files with 7 additions and 7 deletions

View File

@ -28,13 +28,13 @@ pub enum LayerType {
impl fmt::Display for LayerType { impl fmt::Display for LayerType {
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
let name = match self { let name = match self {
LayerType::Folder => "folder", LayerType::Folder => "Folder",
LayerType::Shape => "shape", LayerType::Shape => "Shape",
LayerType::Rect => "rect", LayerType::Rect => "Rectangle",
LayerType::Line => "line", LayerType::Line => "Line",
LayerType::Circle => "circle", LayerType::Circle => "Circle",
LayerType::PolyLine => "poly line", LayerType::PolyLine => "Polyline",
LayerType::Ellipse => "ellipse", LayerType::Ellipse => "Ellipse",
}; };
formatter.write_str(name) formatter.write_str(name)