mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Cleanup some inert attribute stuff
This commit is contained in:
parent
09d7dcc143
commit
6f0207d594
17 changed files with 155 additions and 162 deletions
|
@ -317,6 +317,12 @@ pub struct ValueResult<T, E> {
|
|||
pub err: Option<E>,
|
||||
}
|
||||
|
||||
impl<T: Default, E> Default for ValueResult<T, E> {
|
||||
fn default() -> Self {
|
||||
Self { value: Default::default(), err: Default::default() }
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, E> ValueResult<T, E> {
|
||||
pub fn new(value: T, err: E) -> Self {
|
||||
Self { value, err: Some(err) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue