Rename human-readable layer types (#117)

This commit is contained in:
Keavon Chambers 2021-05-07 21:13:22 -07:00 committed by GitHub
parent 7ec0558cbd
commit 64f716e081
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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