diff options
| author | Benjamin Brittain <bwb@google.com> | 2018-07-29 17:20:11 -0700 |
|---|---|---|
| committer | Benjamin Brittain <bwb@google.com> | 2018-07-29 17:20:21 -0700 |
| commit | 46b241004dbc4d6f77e81868304af4e79df9fe6f (patch) | |
| tree | 09aaefd8ecec315e48b128a564ebf7affc90e3df /src/utils.rs | |
| parent | fedde3790c32c4956b06ae45699f0f76b4502865 (diff) | |
fix nits
Diffstat (limited to 'src/utils.rs')
| -rw-r--r-- | src/utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 => "", } |
