From e64de609534db990a921208b3f4aa11da84ccdbb Mon Sep 17 00:00:00 2001 From: rasul Date: Sun, 2 Feb 2020 18:35:34 -0600 Subject: [PATCH] fields need to be pub for tests --- src/routes/view.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/routes/view.rs b/src/routes/view.rs index 96e48ab..6c2023e 100644 --- a/src/routes/view.rs +++ b/src/routes/view.rs @@ -26,12 +26,12 @@ pub struct Params { #[derive(Debug, Template)] #[template(path = "view.html")] pub struct View { - id: String, - dt: String, - text_lines: Vec, - index_len: usize, - site_url: String, - syntax: String, + pub id: String, + pub dt: String, + pub text_lines: Vec, + pub index_len: usize, + pub site_url: String, + pub syntax: String, } pub fn get(mut state: State) -> Box {