diff options
| author | Michele d'Amico <michele.damico@gmail.com> | 2019-07-17 02:40:33 +0200 |
|---|---|---|
| committer | Seiichi Uchida <seuchida@gmail.com> | 2019-07-17 09:40:33 +0900 |
| commit | 76e2ba25bd419beedbbc15aec6b4c6aef4deffaf (patch) | |
| tree | 1f568fef8a696140a33628fc725a72d6b6b7d9c1 /src/utils.rs | |
| parent | 66c27c9161b2aa70c2902807be12952bd4a0a62b (diff) | |
#3665: Implemented (#3689)
Diffstat (limited to 'src/utils.rs')
| -rw-r--r-- | src/utils.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/utils.rs b/src/utils.rs index 1a4941aa72e..9adc9390111 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -638,26 +638,6 @@ pub(crate) fn unicode_str_width(s: &str) -> usize { s.width() } -pub(crate) fn get_skip_macro_names(attrs: &[ast::Attribute]) -> Vec<String> { - let mut skip_macro_names = vec![]; - for attr in attrs { - // syntax::ast::Path is implemented partialEq - // but it is designed for segments.len() == 1 - if format!("{}", attr.path) != "rustfmt::skip::macros" { - continue; - } - - if let Some(list) = attr.meta_item_list() { - for nested_meta_item in list { - if let Some(name) = nested_meta_item.ident() { - skip_macro_names.push(name.to_string()); - } - } - } - } - skip_macro_names -} - #[cfg(test)] mod test { use super::*; |
