fn render_timeline(&self, number: u32) -> Box<Future<Item = String, Error = Error>> {
        let args = &self.args;
        let tera = Rc::clone(&self.tera);
        Box::new(
            ::timeline::query(
                &self.client,
                &args.token,
                &args.owner,
                &args.repository,
                number,
            )
            .and_then(move |timeline| {
                let body = tera
                    .borrow()
                    .render("timeline.html", &TimelineRenderData { timeline })
                    .map_err(TeraFailure::from)?;
                Ok(body)
            }),
        )
    }
/// Renders the timeline HTML fragment of a PR.
Renders the timeline HTML fragment of a PR.
Renders the timeline HTML fragment of a PR .
fn render_timeline(&self, number: u32) -> Box<Future<Item = String, Error = Error>> {
        let args = &self.args;
        let tera = Rc::clone(&self.tera);
        Box::new(
            ::timeline::query(
                &self.client,
                &args.token,
                &args.owner,
                &args.repository,
                number,
            )
            .and_then(move |timeline| {
                let body = tera
                    .borrow()
                    .render("timeline.html", &TimelineRenderData { timeline })
                    .map_err(TeraFailure::from)?;
                Ok(body)
            }),
        )
    }
fn render_timeline ( & self , number : u32 ) -> Box < Future < Item = String , Error = Error > > { let args = & self . args ; let tera = Rc :: clone ( & self . tera ) ; Box :: new ( :: timeline :: query ( & self . client , & args . token , & args . owner , & args . repository , number , ) . and_then ( move | timeline | { let body = tera . borrow ( ) . render ( " " , & TimelineRenderData { timeline } ) . map_err ( TeraFailure :: from ) ? ; Ok ( body ) } ) , ) }
Renders the timeline HTML fragment of a PR.
Renders the timeline HTML fragment of a PR .
&self
number
u32
&self
number
u32