We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ast::RangeEnd
1 parent c075033 commit 471ac7fCopy full SHA for 471ac7f
1 file changed
src/utils.rs
@@ -146,6 +146,15 @@ pub(crate) fn format_pinnedness_and_mutability(
146
}
147
148
149
+#[inline]
150
+pub(crate) fn format_range_end(end: ast::RangeEnd) -> &'static str {
151
+ match end {
152
+ ast::RangeEnd::Included(ast::RangeSyntax::DotDotDot) => "...",
153
+ ast::RangeEnd::Included(ast::RangeSyntax::DotDotEq) => "..=",
154
+ ast::RangeEnd::Excluded => "..",
155
+ }
156
+}
157
+
158
#[inline]
159
pub(crate) fn format_extern(ext: ast::Extern, explicit_abi: bool) -> Cow<'static, str> {
160
match ext {
0 commit comments