From 46b241004dbc4d6f77e81868304af4e79df9fe6f Mon Sep 17 00:00:00 2001 From: Benjamin Brittain Date: Sun, 29 Jul 2018 17:20:11 -0700 Subject: fix nits --- src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils.rs') diff --git a/src/utils.rs b/src/utils.rs index 3dbffd6d175..5f92255e79c 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -82,8 +82,8 @@ pub fn format_visibility(context: &RewriteContext, vis: &Visibility) -> Cow<'sta } #[inline] -pub fn format_asyncness(asyncness: ast::IsAsync) -> &'static str { - match asyncness { +pub fn format_async(is_async: ast::IsAsync) -> &'static str { + match is_async { ast::IsAsync::Async { .. } => "async ", ast::IsAsync::NotAsync => "", } -- cgit 1.4.1-3-g733a5