summaryrefslogtreecommitdiffstats
path: root/vendor/syn/tests/test_visibility.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/syn/tests/test_visibility.rs')
-rw-r--r--vendor/syn/tests/test_visibility.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/vendor/syn/tests/test_visibility.rs b/vendor/syn/tests/test_visibility.rs
index 7b2c00ba3..496e0070b 100644
--- a/vendor/syn/tests/test_visibility.rs
+++ b/vendor/syn/tests/test_visibility.rs
@@ -1,8 +1,9 @@
+#![allow(clippy::uninlined_format_args)]
+
#[macro_use]
mod macros;
use proc_macro2::{Delimiter, Group, Ident, Punct, Spacing, Span, TokenStream, TokenTree};
-use std::iter::FromIterator;
use syn::parse::{Parse, ParseStream};
use syn::{DeriveInput, Result, Visibility};
@@ -51,11 +52,6 @@ fn test_pub() {
}
#[test]
-fn test_crate() {
- assert_vis_parse!("crate", Ok(Visibility::Crate(_)));
-}
-
-#[test]
fn test_inherited() {
assert_vis_parse!("", Ok(Visibility::Inherited));
}
@@ -128,14 +124,14 @@ fn test_empty_group_vis() {
snapshot!(tokens as DeriveInput, @r###"
DeriveInput {
- vis: Inherited,
+ vis: Visibility::Inherited,
ident: "S",
generics: Generics,
data: Data::Struct {
fields: Fields::Named {
named: [
Field {
- vis: Inherited,
+ vis: Visibility::Inherited,
ident: Some("f"),
colon_token: Some,
ty: Type::Tuple,