Skip to content

Commit 8f8a6c0

Browse files
committed
chore: remove unused crate::utils::format_auto
Using `HeaderPart::auto` for formatting instead.
1 parent a6872aa commit 8f8a6c0

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/utils.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,6 @@ pub(crate) fn format_safety(unsafety: ast::Safety) -> &'static str {
117117
}
118118
}
119119

120-
// FIXME(ytmimi) might want to get rid of `format_auto` since we now have `HeaderPart::auto`
121-
#[allow(unused)]
122-
#[inline]
123-
pub(crate) fn format_auto(is_auto: ast::IsAuto) -> &'static str {
124-
match is_auto {
125-
ast::IsAuto::Yes => "auto ",
126-
ast::IsAuto::No => "",
127-
}
128-
}
129-
130120
#[inline]
131121
pub(crate) fn format_mutability(mutability: ast::Mutability) -> &'static str {
132122
match mutability {

0 commit comments

Comments
 (0)