From 902a986e648a54bfdf9ef7c244a2fb6829eb699b Mon Sep 17 00:00:00 2001 From: KmolYuan Date: Wed, 31 Aug 2022 21:05:01 +0800 Subject: [PATCH] Remove function alias. --- src/project.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/project.rs b/src/project.rs index 20b6589..32051dd 100644 --- a/src/project.rs +++ b/src/project.rs @@ -157,8 +157,6 @@ pub(crate) fn load(doc: &str, mount: &str, auto_reload: bool) -> Result Result (Metadata::default(), Slides::single("Hello", "World!")), [n1] => { - let slides = to_slides(n1.clone()).map_err(disp)?; + let slides = Vec::deserialize(n1.clone()).map_err(disp)?; (Metadata::default(), Slides { slides }) } ns @ [n1, ns_sub @ ..] => { - if let Ok(metadata) = metadata(n1.clone()) { + if let Ok(metadata) = Metadata::deserialize(n1.clone()) { let slides = to_slides_flatten(ns_sub).map_err(disp)?; (metadata, Slides { slides }) } else {