Skip to content

Commit 4314d72

Browse files
committed
Use stringify! for string literal of type name
1 parent cf4a9ab commit 4314d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl fmt::Display for AxisSliceInfo {
175175
write!(f, ";{}", step)?;
176176
}
177177
}
178-
AxisSliceInfo::NewAxis => write!(f, "NewAxis")?,
178+
AxisSliceInfo::NewAxis => write!(f, stringify!(NewAxis))?,
179179
}
180180
Ok(())
181181
}

0 commit comments

Comments
 (0)