diff options
author | Aleksey Kladov <[email protected]> | 2018-08-15 22:23:22 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-15 22:23:22 +0100 |
commit | c631b585a7358d1569a051f2529ecaae222e95cd (patch) | |
tree | 2e8332d166900c29cf485297b8510451b97accd0 /crates/server/src/conv.rs | |
parent | aa0d344581dcfd7f18c595688a4b2709b0f2421e (diff) |
matching brace
Diffstat (limited to 'crates/server/src/conv.rs')
-rw-r--r-- | crates/server/src/conv.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/server/src/conv.rs b/crates/server/src/conv.rs index bbe512ece..b3709ccaf 100644 --- a/crates/server/src/conv.rs +++ b/crates/server/src/conv.rs | |||
@@ -117,6 +117,14 @@ impl ConvWith for AtomEdit { | |||
117 | } | 117 | } |
118 | } | 118 | } |
119 | 119 | ||
120 | impl<T: ConvWith> ConvWith for Option<T> { | ||
121 | type Ctx = <T as ConvWith>::Ctx; | ||
122 | type Output = Option<<T as ConvWith>::Output>; | ||
123 | fn conv_with(self, ctx: &Self::Ctx) -> Self::Output { | ||
124 | self.map(|x| ConvWith::conv_with(x, ctx)) | ||
125 | } | ||
126 | } | ||
127 | |||
120 | impl<'a> TryConvWith for &'a Url { | 128 | impl<'a> TryConvWith for &'a Url { |
121 | type Ctx = PathMap; | 129 | type Ctx = PathMap; |
122 | type Output = FileId; | 130 | type Output = FileId; |