From 0d260eafca9930a10a643526a2a0ec8ee44c3788 Mon Sep 17 00:00:00 2001 From: Christopher Biscardi Date: Mon, 14 Dec 2020 02:37:52 -0800 Subject: [PATCH] remove a comment --- src/lib.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 221469b..51c6939 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,17 +17,6 @@ pub fn parse( mdx_elements(input).map(|ast| Mdx { ast }) } -// TODO: This function should not panic -// pub fn parse<'a>(input: &'a str) -> Result, std::io::Error> { -// let result = mdx(input); -// match result { -// Ok(("", m @ Mdx { .. })) => Ok(m), -// Ok((i, m)) => panic!("leftover input {} -// parsed: {:?}", i, m), -// e => panic!("something went wrong. TODO error message {:?}", e), -// } -// } - // TODO: there's probably a trait we can do for this? // maybe Display somehow? pub fn stringify(m: Mdx) -> String {