summaryrefslogtreecommitdiff
path: root/libgrust/libformat_parser/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libgrust/libformat_parser/src/lib.rs')
-rw-r--r--libgrust/libformat_parser/src/lib.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/libgrust/libformat_parser/src/lib.rs b/libgrust/libformat_parser/src/lib.rs
index 0769577740f..f4670bf9b1f 100644
--- a/libgrust/libformat_parser/src/lib.rs
+++ b/libgrust/libformat_parser/src/lib.rs
@@ -5,16 +5,6 @@
use std::ffi::CStr;
-trait StringLeakExt {
- fn leak<'a>(self) -> &'a mut str;
-}
-
-impl StringLeakExt for String {
- fn leak<'a>(self) -> &'a mut str {
- Box::leak(self.into_boxed_str())
- }
-}
-
trait IntoFFI<T> {
fn into_ffi(self) -> T;
}
@@ -98,10 +88,6 @@ mod ffi {
// InlineAsm,
// }
- #[derive(Copy, Clone)]
- #[repr(C)]
- struct InnerOffset(usize);
-
/// A piece is a portion of the format string which represents the next part
/// to emit. These are emitted as a stream by the `Parser` class.
#[derive(Debug, Clone, PartialEq)]