diff options
author | Martin Fischer <martin@push-f.com> | 2021-06-24 19:04:23 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-06-24 19:41:05 +0200 |
commit | 26298bcd7ef204db4396ca2d0e603fc183220cd2 (patch) | |
tree | 9478019c3a365cb71b7cc41e12885ad25d7592b5 /src/lua/serde/de.rs | |
parent | d49d835e63ec654e3a5bf75b3b365354460382e8 (diff) |
refactor: simplify Page and Context structs
Previously the Page struct contained references to the Controller and
the http::request::Parts, so that page.render() could call
controller.user_info_html(parts). This commit removes these references
from the Page struct, so that it can implement Default in the future.
The Context struct needs to be moved around since it contains
git2::Repository, which isn't Send. Previously the Context struct also
contained the http::request::Parts, so they were moved along.
This commit extracts Parts out of the Context struct, so that our
service function can access Parts after invoking our build_request
method, allowing us to easily log request details for errors in the
future.
Diffstat (limited to 'src/lua/serde/de.rs')
0 files changed, 0 insertions, 0 deletions