We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I create lsp_types::document_symbols::DocumentSymbol, I always write an extra line #[allow(deprecated)] to suppress deprecated lint message.
lsp_types::document_symbols::DocumentSymbol
#[allow(deprecated)]
These symbols also have no constructor.
I think we can implement Default for these types, then it can be used like this.
DocumentSymbol { name: some_name, detail: Some(detail), ..Default::default() }
The only problem is that some fields are difficult to choose default values
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I create
lsp_types::document_symbols::DocumentSymbol
, I always write an extra line#[allow(deprecated)]
to suppress deprecated lint message.These symbols also have no constructor.
I think we can implement Default for these types, then it can be used like this.
The only problem is that some fields are difficult to choose default values
The text was updated successfully, but these errors were encountered: