From 94bd03095877149cecedf1b9e3f79e470529db82 Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Wed, 13 Sep 2023 15:48:46 -0400 Subject: [PATCH] Code cleanups --- sgf/src/lib.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sgf/src/lib.rs b/sgf/src/lib.rs index f9a4aad..51e55e8 100644 --- a/sgf/src/lib.rs +++ b/sgf/src/lib.rs @@ -4,7 +4,7 @@ pub use date::Date; // pub mod go; mod tree; -use tree::parse_collection; +use tree::{parse_collection, Tree}; // mod game; @@ -18,8 +18,12 @@ pub enum Game { Go(go::Game), Unsupported(tree::Tree), } +*/ -pub fn parse_sgf(input: &str) -> Result, Error> { +pub fn parse_sgf(input: &str) -> Result, Error> { + let (_, trees) = parse_collection::>(input)?; + Ok(trees) + /* let (_, trees) = parse_collection::>(input)?; Ok(trees .into_iter() @@ -30,8 +34,8 @@ pub fn parse_sgf(input: &str) -> Result, Error> { _ => Game::Unsupported(t), }) .collect::>()) + */ } -*/ /* impl From<(&str, VerboseErrorKind)> for