Skip to content

Commit e2d4127

Browse files
committed
Add into_inner function in StdIoWrapper
1 parent ee42909 commit e2d4127

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/io.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ impl<T> StdIoWrapper<T> {
187187
pub fn new(inner: T) -> Self {
188188
Self { inner }
189189
}
190+
191+
/// Returns inner struct
192+
pub fn into_inner(self) -> T {
193+
self.inner
194+
}
190195
}
191196

192197
#[cfg(feature = "std")]

0 commit comments

Comments
 (0)