diff options
| author | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-04-08 22:18:18 +0800 |
|---|---|---|
| committer | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-04-08 22:22:11 +0800 |
| commit | 84d36597671982900dc10f4d1940d40b290106eb (patch) | |
| tree | 597b6a16d970dd6c71b4b2d84bfc07616f41d159 /src/utils.rs | |
| parent | edcc7b69ebe7f13223bd0e44f766a050df859eaa (diff) | |
update rustc syntax 91.0.0
Diffstat (limited to 'src/utils.rs')
| -rw-r--r-- | src/utils.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.rs b/src/utils.rs index 055f75b4609..dae57882a35 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -42,7 +42,7 @@ pub fn format_visibility(vis: &Visibility) -> Cow<'static, str> { VisibilityKind::Crate(CrateSugar::JustCrate) => Cow::from("crate "), VisibilityKind::Restricted { ref path, .. } => { let Path { ref segments, .. } = **path; - let mut segments_iter = segments.iter().map(|seg| seg.identifier.name.to_string()); + let mut segments_iter = segments.iter().map(|seg| seg.ident.name.to_string()); if path.is_global() { segments_iter .next() @@ -190,9 +190,9 @@ pub fn last_line_extendable(s: &str) -> bool { #[inline] fn is_skip(meta_item: &MetaItem) -> bool { match meta_item.node { - MetaItemKind::Word => meta_item.name == SKIP_ANNOTATION, + MetaItemKind::Word => meta_item.ident.name == SKIP_ANNOTATION, MetaItemKind::List(ref l) => { - meta_item.name == "cfg_attr" && l.len() == 2 && is_skip_nested(&l[1]) + meta_item.ident.name == "cfg_attr" && l.len() == 2 && is_skip_nested(&l[1]) } _ => false, } |
