fields need to be pub for tests

master
rasul 5 years ago
parent 91f6dd81d2
commit e64de60953

@ -26,12 +26,12 @@ pub struct Params {
#[derive(Debug, Template)] #[derive(Debug, Template)]
#[template(path = "view.html")] #[template(path = "view.html")]
pub struct View { pub struct View {
id: String, pub id: String,
dt: String, pub dt: String,
text_lines: Vec<String>, pub text_lines: Vec<String>,
index_len: usize, pub index_len: usize,
site_url: String, pub site_url: String,
syntax: String, pub syntax: String,
} }
pub fn get(mut state: State) -> Box<HandlerFuture> { pub fn get(mut state: State) -> Box<HandlerFuture> {

Loading…
Cancel
Save