Skip to content

Commit

Permalink
hide the completions module
Browse files Browse the repository at this point in the history
  • Loading branch information
ealmloff committed May 16, 2024
1 parent 150a8cc commit efd5e3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/html/src/elements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ macro_rules! builder_constructors {
)*

/// This module contains helpers for rust analyzer autocompletion
#[doc(hidden)]
pub mod completions {
/// This helper tells rust analyzer that it should autocomplete the element name with braces.
#[allow(non_camel_case_types)]
Expand Down
1 change: 1 addition & 0 deletions packages/rsx/src/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ impl ElementAttrNamed {
quote! {
{
#[allow(dead_code)]
#[doc(hidden)]
mod __completions {
// Autocomplete as an attribute
pub use super::dioxus_elements::#el::*;
Expand Down

0 comments on commit efd5e3f

Please sign in to comment.