{"action":"opened","issue":{"url":"https://api.github.com/repos/saschagrunert/webapp.rs/issues/25","repository_url":"https://api.github.com/repos/saschagrunert/webapp.rs","labels_url":"https://api.github.com/repos/saschagrunert/webapp.rs/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/saschagrunert/webapp.rs/issues/25/comments","events_url":"https://api.github.com/repos/saschagrunert/webapp.rs/issues/25/events","html_url":"https://github.com/saschagrunert/webapp.rs/issues/25","id":361948845,"node_id":"MDU6SXNzdWUzNjE5NDg4NDU=","number":25,"title":"Without postgresql, with empty State, unpack_cbor results in E0284","user":{"login":"PAStheLoD","id":109316,"node_id":"MDQ6VXNlcjEwOTMxNg==","avatar_url":"https://avatars2.githubusercontent.com/u/109316?v=4","gravatar_id":"","url":"https://api.github.com/users/PAStheLoD","html_url":"https://github.com/PAStheLoD","followers_url":"https://api.github.com/users/PAStheLoD/followers","following_url":"https://api.github.com/users/PAStheLoD/following{/other_user}","gists_url":"https://api.github.com/users/PAStheLoD/gists{/gist_id}","starred_url":"https://api.github.com/users/PAStheLoD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PAStheLoD/subscriptions","organizations_url":"https://api.github.com/users/PAStheLoD/orgs","repos_url":"https://api.github.com/users/PAStheLoD/repos","events_url":"https://api.github.com/users/PAStheLoD/events{/privacy}","received_events_url":"https://api.github.com/users/PAStheLoD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-19T22:16:57Z","updated_at":"2018-09-19T22:16:57Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nFirst of all thanks for sharing this wonderful project with the community!\r\n\r\nAnd please close this ticket if this is the wrong place to ask this question.\r\n\r\nSo, after unceremoniously commenting out a lot of database related stuff, after changing State (because an empty State<T> wouldn't compile due to unused type parameter) and all its use sites, I got stuck with this:\r\n\r\n```\r\nerror[E0284]: type annotations required: cannot resolve `<_ as actix::Actor>::Context == _`                                                                                                   \r\n  --> backend/src/http/login_credentials/mod.rs:21:33                                                                                                                                         \r\n   |                                                                                                                                                                                          \r\n21 |     let (request_clone, cbor) = unpack_cbor(http_request);                                                                                                                               \r\n   |                                 ^^^^^^^^^^^                                                                                                                                              \r\n     \r\n```\r\n\r\n\r\n```\r\n  /// Cbor unpacking helper, also returns a clone of the request reference\r\n  pub fn unpack_cbor<A, D, M>(\r\n--    http_request: &HttpRequest<State<A>>,\r\n--) -> (HttpRequest<State<A>>, FromErr<CborRequest<D>, Error>)\r\n++    http_request: &HttpRequest<State>,\r\n++) -> (HttpRequest<State>, FromErr<CborRequest<D>, Error>)\r\n  where\r\n      M: Message,\r\n      D: DeserializeOwned + 'static,\r\n```\r\n\r\n```\r\n  /// Shared mutable application state\r\n--pub struct State<T>\r\n--where\r\n--    T: Actor,\r\n--{\r\n--    /// The database connection\r\n--    pub database: Addr<T>,\r\n--}\r\n++pub struct State;\r\n```\r\n\r\nAnd I've replaced the CreateSession, UpdateSession, DeleteSession structs, I don't know if it matters.\r\n\r\n```\r\n++\r\n++\r\n++use actix::prelude::*;\r\n++use failure::Fallible;\r\n++use webapp::{protocol::model::Session};\r\n++\r\n++pub struct Data(pub String);\r\n++\r\n++impl Message for Data {\r\n++    type Result = Fallible<Session>;\r\n++}\r\n++\r\n++impl From<String> for Data {\r\n++    fn from(s: String) -> Data {\r\n++       Data(s)\r\n++    }\r\n++}\r\n++\r\n```\r\n\r\nThis is on nightly-1.30.\r\n\r\nThanks!"}}
{"actor":{"display_login":"PAStheLoD"}}