mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
matching brace
This commit is contained in:
parent
aa0d344581
commit
c631b585a7
9 changed files with 135 additions and 14 deletions
|
@ -117,6 +117,14 @@ impl ConvWith for AtomEdit {
|
|||
}
|
||||
}
|
||||
|
||||
impl<T: ConvWith> ConvWith for Option<T> {
|
||||
type Ctx = <T as ConvWith>::Ctx;
|
||||
type Output = Option<<T as ConvWith>::Output>;
|
||||
fn conv_with(self, ctx: &Self::Ctx) -> Self::Output {
|
||||
self.map(|x| ConvWith::conv_with(x, ctx))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> TryConvWith for &'a Url {
|
||||
type Ctx = PathMap;
|
||||
type Output = FileId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue