Use arrows to assign enum members.

This commit is contained in:
Bauke 2024-01-24 12:50:38 +01:00
parent c2e8b7c5b5
commit 70b31f1f3a
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 10 additions and 10 deletions

View File

@ -4,21 +4,21 @@ use crate::gegl_enum;
gegl_enum!(
FocusBlurShape,
Circle: "circle",
Square: "square",
Diamond: "diamond",
Horizontal: "horizontal",
Vertical: "vertical",
Circle => "circle",
Square => "square",
Diamond => "diamond",
Horizontal => "horizontal",
Vertical => "vertical",
);
gegl_enum!(
FocusBlurType,
Gaussian: "gaussian",
Lens: "lens",
Gaussian => "gaussian",
Lens => "lens",
);
gegl_enum!(
MazeAlgorithmType,
DepthFirst: "depth-first",
Prim: "prim",
DepthFirst => "depth-first",
Prim => "prim",
);

View File

@ -49,7 +49,7 @@ macro_rules! gegl_operation {
macro_rules! gegl_enum {
(
$enum_name:ident,
$($key:ident: $value:expr),*,
$($key:ident => $value:expr),*,
) => {
#[doc = "TODO: Generate documentation for [`gegl_enum!`]."]
#[derive(Debug)]