Skip to content

Commit 1cbc3e3

Browse files
authored
Merge pull request #1658 from anforowicz/arbitrary-inner-type-in-named-impl-key
Arbitrary inner type in named impl key
2 parents 1f8c66a + 18a1c1c commit 1cbc3e3

File tree

15 files changed

+441
-374
lines changed

15 files changed

+441
-374
lines changed

gen/src/out.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ impl<'a> Write for Content<'a> {
122122
}
123123
}
124124

125+
impl<'a> Write for OutFile<'a> {
126+
fn write_str(&mut self, s: &str) -> fmt::Result {
127+
self.content.borrow_mut().write(s);
128+
Ok(())
129+
}
130+
}
131+
125132
impl<'a> PartialEq for Content<'a> {
126133
fn eq(&self, _other: &Self) -> bool {
127134
true

0 commit comments

Comments
 (0)