mirror of https://github.com/rwf2/Rocket.git
Remove use of 'private_in_public' lint.
The lint no longer exists. This gets rid of a compile-time warning for users. Resolves #2608.
This commit is contained in:
parent
33d8562ca1
commit
e7ef93be49
|
@ -123,7 +123,9 @@ pub fn derive_from_form(input: proc_macro::TokenStream) -> TokenStream {
|
|||
Ok(quote_spanned! { input.span() =>
|
||||
/// Rocket generated FormForm context.
|
||||
#[doc(hidden)]
|
||||
#[allow(private_in_public)]
|
||||
#[allow(unknown_lints)]
|
||||
#[allow(renamed_and_removed_lints)]
|
||||
#[allow(private_in_public, private_bounds)]
|
||||
#vis struct #ctxt_ty #impl_gen #where_clause {
|
||||
__opts: #_form::Options,
|
||||
__errors: #_form::Errors<'r>,
|
||||
|
@ -148,6 +150,7 @@ pub fn derive_from_form(input: proc_macro::TokenStream) -> TokenStream {
|
|||
#[allow(unused_imports)]
|
||||
use #_http::uncased::AsUncased;
|
||||
})
|
||||
.outer_mapper(quote!(#[allow(renamed_and_removed_lints)]))
|
||||
.outer_mapper(quote!(#[allow(private_in_public)]))
|
||||
.outer_mapper(quote!(#[rocket::async_trait]))
|
||||
.inner_mapper(MapperBuild::new()
|
||||
|
|
|
@ -984,7 +984,7 @@ fn json_wrapper_works() {
|
|||
assert_eq!(form, JsonToken(Json("foo bar")));
|
||||
}
|
||||
|
||||
// FIXME: https://github.com/rust-lang/rust/issues/86706
|
||||
#[allow(renamed_and_removed_lints)]
|
||||
#[allow(private_in_public)]
|
||||
struct Q<T>(T);
|
||||
|
||||
|
|
|
@ -247,7 +247,7 @@ fn uri_display_serde() {
|
|||
|
||||
assert_query_value_roundtrip!(JsonFoo, JsonFoo(Json(bam.clone())));
|
||||
|
||||
// FIXME: https://github.com/rust-lang/rust/issues/86706
|
||||
#[allow(renamed_and_removed_lints)]
|
||||
#[allow(private_in_public)]
|
||||
#[derive(Debug, PartialEq, Clone, FromForm, UriDisplayQuery)]
|
||||
struct Q<T>(Json<T>);
|
||||
|
|
Loading…
Reference in New Issue