Big refactoring of the Inbox
#443
inbox-refactor
into master
5 years ago
@ -1,48 +1,606 @@
|
||||
|
||||
use activitypub::{activity::Create, Error as ApError, Object};
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
use reqwest::header::{HeaderValue, ACCEPT};
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
use std::fmt::Debug;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
use activity_pub::Id;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Represents an ActivityPub inbox.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// It routes an incoming Activity through the registered handlers.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Example
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// ```rust
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # extern crate activitypub;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # use activitypub::{actor::Person, activity::{Announce, Create}, object::Note};
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # use plume_common::activity_pub::inbox::*;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # struct User;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # impl FromId<()> for User {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # type Object = Person;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// #
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # fn from_db(_: &(), _id: &str) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Ok(User)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// #
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # fn from_activity(_: &(), obj: Person) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Ok(User)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # impl AsActor<&()> for User {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # fn get_inbox_url(&self) -> String {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # String::new()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # fn is_local(&self) -> bool { false }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # struct Message;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # impl FromId<()> for Message {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # type Object = Note;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// #
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # fn from_db(_: &(), _id: &str) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Ok(Message)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// #
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # fn from_activity(_: &(), obj: Note) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Ok(Message)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # impl AsObject<User, Create, &()> for Message {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # type Output = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// #
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # fn activity(self, _: &(), _actor: User, _id: &str) -> Result<(), ()> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Ok(())
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # impl AsObject<User, Announce, &()> for Message {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # type Output = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// #
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # fn activity(self, _: &(), _actor: User, _id: &str) -> Result<(), ()> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Ok(())
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// #
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # let mut act = Create::default();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # act.object_props.set_id_string(String::from("https://test.ap/activity")).unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # let mut person = Person::default();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # person.object_props.set_id_string(String::from("https://test.ap/actor")).unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # act.create_props.set_actor_object(person).unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # act.create_props.set_object_object(Note::default()).unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # let activity_json = serde_json::to_value(act).unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// #
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # let conn = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// #
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// let result: Result<(), ()> = Inbox::handle(&conn, activity_json)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// .with::<User, Announce, Message>()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// .with::<User, Create, Message>()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// .done();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// ```
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
pub enum Inbox<'a, C, E, R>
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
where
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
E: From<InboxError<E>> + Debug,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
{
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// The activity has not been handled yet
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Structure
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - the context to be passed to each handler.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - the activity
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - the reason it has not been handled yet
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
NotHandled(&'a C, serde_json::Value, InboxError<E>),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
#[derive(Fail, Debug)]
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
pub enum InboxError {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
#[fail(display = "The `type` property is required, but was not present")]
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
NoType,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
#[fail(display = "Invalid activity type")]
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
InvalidType,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
#[fail(display = "Couldn't undo activity")]
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
CantUndo,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// A matching handler have been found but failed
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// The wrapped value is the error returned by the handler
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Failed(E),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// The activity was successfully handled
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// The wrapped value is the value returned by the handler
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Handled(R),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
|
||||
pub trait FromActivity<T: Object, C>: Sized {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Error: From<ApError>;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Possible reasons of inbox failure
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
#[derive(Debug)]
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
pub enum InboxError<E: Debug> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// None of the registered handlers matched
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
NoMatch,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
fn from_activity(conn: &C, obj: T, actor: Id) -> Result<Self, Self::Error>;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// No ID was provided for the incoming activity, or it was not a string
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
InvalidID,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
fn try_from_activity(conn: &C, act: Create) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Self::from_activity(
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
conn,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
act.create_props.object_object()?,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
act.create_props.actor_link::<Id>()?,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// The activity type matched for at least one handler, but then the actor was
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// not of the expected type
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
InvalidActor(Option<E>),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Activity and Actor types matched, but not the Object
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
InvalidObject(Option<E>),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Error while dereferencing the object
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
DerefError,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
|
||||
pub trait Notify<C> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Error;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
impl<T: Debug> From<InboxError<T>> for () {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn from(_: InboxError<T>) {}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/*
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Type arguments:
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
- C: Context
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
- E: Error
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
- R: Result
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
*/
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
impl<'a, C, E, R> Inbox<'a, C, E, R>
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
where
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
E: From<InboxError<E>> + Debug,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
{
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Creates a new `Inbox` to handle an incoming activity.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Parameters
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `ctx`: the context to pass to each handler
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `json`: the JSON representation of the incoming activity
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
pub fn handle(ctx: &'a C, json: serde_json::Value) -> Inbox<'a, C, E, R> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Inbox::NotHandled(ctx, json, InboxError::NoMatch)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Registers an handler on this Inbox.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
pub fn with<A, V, M>(self) -> Inbox<'a, C, E, R>
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
where
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
A: AsActor<&'a C> + FromId<C, Error = E>,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
V: activitypub::Activity,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
M: AsObject<A, V, &'a C, Error = E> + FromId<C, Error = E>,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
M::Output: Into<R>,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
{
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
if let Inbox::NotHandled(ctx, mut act, e) = self {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
if serde_json::from_value::<V>(act.clone()).is_ok() {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let act_clone = act.clone();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let act_id = match act_clone["id"].as_str() {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Some(x) => x,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
None => return Inbox::NotHandled(ctx, act, InboxError::InvalidID),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
};
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
// Get the actor ID
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let actor_id = match get_id(act["actor"].clone()) {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Some(x) => x,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
None => return Inbox::NotHandled(ctx, act, InboxError::InvalidActor(None)),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
};
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
// Transform this actor to a model (see FromId for details about the from_id function)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let actor = match A::from_id(
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
ctx,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
&actor_id,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
serde_json::from_value(act["actor"].clone()).ok(),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
) {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Ok(a) => a,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
// If the actor was not found, go to the next handler
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Err((json, e)) => {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
if let Some(json) = json {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
act["actor"] = json;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
return Inbox::NotHandled(ctx, act, InboxError::InvalidActor(Some(e)));
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
};
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
fn notify(&self, conn: &C) -> Result<(), Self::Error>;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
// Same logic for "object"
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let obj_id = match get_id(act["object"].clone()) {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Some(x) => x,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
None => return Inbox::NotHandled(ctx, act, InboxError::InvalidObject(None)),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
};
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let obj = match M::from_id(
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
ctx,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
&obj_id,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
serde_json::from_value(act["object"].clone()).ok(),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
) {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Ok(o) => o,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Err((json, e)) => {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
if let Some(json) = json {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
act["object"] = json;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
return Inbox::NotHandled(ctx, act, InboxError::InvalidObject(Some(e)));
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
};
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
// Handle the activity
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
match obj.activity(ctx, actor, &act_id) {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Ok(res) => Inbox::Handled(res.into()),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Err(e) => Inbox::Failed(e),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
} else {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
// If the Activity type is not matching the expected one for
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
// this handler, try with the next one.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Inbox::NotHandled(ctx, act, e)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
} else {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
self
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Transforms the inbox in a `Result`
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
pub fn done(self) -> Result<R, E> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
match self {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Inbox::Handled(res) => Ok(res),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Inbox::NotHandled(_, _, err) => Err(E::from(err)),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Inbox::Failed(err) => Err(err),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
|
||||
pub trait Deletable<C, A> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Error;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Get the ActivityPub ID of a JSON value.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// If the value is a string, its value is returned.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// If it is an object, and that its `id` field is a string, we return it.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Otherwise, `None` is returned.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn get_id(json: serde_json::Value) -> Option<String> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
match json {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
serde_json::Value::String(s) => Some(s),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
serde_json::Value::Object(map) => map.get("id")?.as_str().map(ToString::to_string),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
_ => None,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// A trait for ActivityPub objects that can be retrieved or constructed from ID.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// The two functions to implement are `from_activity` to create (and save) a new object
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// of this type from its AP representation, and `from_db` to try to find it in the database
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// using its ID.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// When dealing with the "object" field of incoming activities, `Inbox` will try to see if it is
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// a full object, and if so, save it with `from_activity`. If it is only an ID, it will try to find
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// it in the database with `from_db`, and otherwise dereference (fetch) the full object and parse it
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// with `from_activity`.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
pub trait FromId<C>: Sized {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// The type representing a failure
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Error: From<InboxError<Self::Error>> + Debug;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// The ActivityPub object type representing Self
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Object: activitypub::Object;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
fn delete(&self, conn: &C) -> Result<A, Self::Error>;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn delete_id(id: &str, actor_id: &str, conn: &C) -> Result<A, Self::Error>;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Tries to get an instance of `Self` from an ActivityPub ID.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Parameters
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `ctx`: a context to get this instance (= a database in which to search)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `id`: the ActivityPub ID of the object to find
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `object`: optional object that will be used if the object was not found in the database
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// If absent, the ID will be dereferenced.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn from_id(
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
ctx: &C,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
id: &str,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
object: Option<Self::Object>,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
) -> Result<Self, (Option<serde_json::Value>, Self::Error)> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
match Self::from_db(ctx, id) {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Ok(x) => Ok(x),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
_ => match object {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Some(o) => Self::from_activity(ctx, o).map_err(|e| (None, e)),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
None => Self::from_activity(ctx, Self::deref(id)?).map_err(|e| (None, e)),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
},
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
trinity-1686a
commented 5 years ago
Review
Isn't Sized implied by default? Isn't Sized implied by default?
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
Review
IIRC, the compiler threw errors when it wasn't here. 🤷♀️ IIRC, the compiler threw errors when it wasn't here. :woman_shrugging:
Review
I'll try to remove it just to be sure. I'll try to remove it just to be sure.
Review
It was explicitly needed here, to be able to have It was explicitly needed here, to be able to have `Result<Self, _>` here, but was not actually required on the two other types.
trinity-1686a
commented 5 years ago
Review
ok, I did not know ok, I did not know
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Dereferences an ID
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn deref(id: &str) -> Result<Self::Object, (Option<serde_json::Value>, Self::Error)> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
reqwest::Client::new()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.get(id)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.header(
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
ACCEPT,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
HeaderValue::from_str(
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
&super::ap_accept_header()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.into_iter()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.collect::<Vec<_>>()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.join(", "),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.map_err(|_| (None, InboxError::DerefError.into()))?,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.send()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.map_err(|_| (None, InboxError::DerefError))
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.and_then(|mut r| {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let json: serde_json::Value = r
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.json()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.map_err(|_| (None, InboxError::InvalidObject(None)))?;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
serde_json::from_value(json.clone())
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.map_err(|_| (Some(json), InboxError::InvalidObject(None)))
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
})
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.map_err(|(json, e)| (json, e.into()))
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Builds a `Self` from its ActivityPub representation
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn from_activity(ctx: &C, activity: Self::Object) -> Result<Self, Self::Error>;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Tries to find a `Self` with a given ID (`id`), using `ctx` (a database)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn from_db(ctx: &C, id: &str) -> Result<Self, Self::Error>;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
|
||||
pub trait WithInbox {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Should be implemented by anything representing an ActivityPub actor.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Type arguments
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `C`: the context to be passed to this activity handler from the `Inbox` (usually a database connection)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
pub trait AsActor<C> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Return the URL of this actor's inbox
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn get_inbox_url(&self) -> String;
|
||||
|
||||
fn get_shared_inbox_url(&self) -> Option<String>;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// If this actor has shared inbox, its URL should be returned by this function
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn get_shared_inbox_url(&self) -> Option<String> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
None
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
/// `true` if this actor comes from the running ActivityPub server/instance
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn is_local(&self) -> bool;
|
||||
}
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Should be implemented by anything representing an ActivityPub object.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Type parameters
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `A`: the actor type
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `V`: the ActivityPub verb/activity
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `O`: the ActivityPub type of the Object for this activity (usually the type corresponding to `Self`)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `C`: the context needed to handle the activity (usually a database connection)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Example
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// An implementation of AsObject that handles Note creation by an Account model,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// representing the Note by a Message type, without any specific context.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// ```rust
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # extern crate activitypub;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # use activitypub::{activity::Create, actor::Person, object::Note};
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # use plume_common::activity_pub::inbox::{AsActor, AsObject, FromId};
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # struct Account;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # impl FromId<()> for Account {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # type Object = Person;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// #
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
Review
is this missing an implementation, or is this it? 😜 is this missing an implementation, or is this it? 😜
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
No it is the default implementation: unless the implementation specifies a shared inbox URL, it is No it is the default implementation: unless the implementation specifies a shared inbox URL, it is `None` (but in reality I think all our implementations override this behavior)
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # fn from_db(_: &(), _id: &str) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Ok(Account)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// #
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # fn from_activity(_: &(), obj: Person) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Ok(Account)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # impl AsActor<()> for Account {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # fn get_inbox_url(&self) -> String {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # String::new()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # fn is_local(&self) -> bool { false }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// #[derive(Debug)]
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// struct Message {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// text: String,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// impl FromId<()> for Message {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// type Object = Note;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// fn from_db(_: &(), _id: &str) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Ok(Message { text: "From DB".into() })
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// fn from_activity(_: &(), obj: Note) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Ok(Message { text: obj.object_props.content_string().map_err(|_| ())? })
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// impl AsObject<Account, Create, ()> for Message {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// type Output = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// fn activity(self, _: (), _actor: Account, _id: &str) -> Result<(), ()> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// println!("New Note: {:?}", self);
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Ok(())
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// }
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// ```
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
pub trait AsObject<A, V, C>
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
where
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
V: activitypub::Activity,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
{
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// What kind of error is returned when something fails
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Error;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// What is returned by `AsObject::activity`, if anything is returned
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Output = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// Handle a specific type of activity dealing with this type of objects.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// The implementations should check that the actor is actually authorized
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// to perform this action.
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// # Parameters
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
///
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `self`: the object on which the activity acts
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `ctx`: the context passed to `Inbox::handle`
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `actor`: the actor who did this activity
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
/// - `id`: the ID of this activity
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn activity(self, ctx: C, actor: A, id: &str) -> Result<Self::Output, Self::Error>;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
#[cfg(test)]
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
mod tests {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
use super::*;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
use activitypub::{activity::*, actor::Person, object::Note};
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
struct MyActor;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
impl FromId<()> for MyActor {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Object = Person;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn from_db(_: &(), _id: &str) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Ok(MyActor)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn from_activity(_: &(), _obj: Person) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Ok(MyActor)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
impl AsActor<&()> for MyActor {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn get_inbox_url(&self) -> String {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
String::from("https://test.ap/my-actor/inbox")
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn is_local(&self) -> bool {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
false
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
struct MyObject;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
impl FromId<()> for MyObject {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Object = Note;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn from_db(_: &(), _id: &str) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Ok(MyObject)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn from_activity(_: &(), _obj: Note) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Ok(MyObject)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
impl AsObject<MyActor, Create, &()> for MyObject {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Output = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn activity(self, _: &(), _actor: MyActor, _id: &str) -> Result<Self::Output, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
println!("MyActor is creating a Note");
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Ok(())
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
impl AsObject<MyActor, Like, &()> for MyObject {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Output = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn activity(self, _: &(), _actor: MyActor, _id: &str) -> Result<Self::Output, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
println!("MyActor is liking a Note");
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Ok(())
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
impl AsObject<MyActor, Delete, &()> for MyObject {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Output = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn activity(self, _: &(), _actor: MyActor, _id: &str) -> Result<Self::Output, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
println!("MyActor is deleting a Note");
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Ok(())
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
impl AsObject<MyActor, Announce, &()> for MyObject {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Output = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn activity(self, _: &(), _actor: MyActor, _id: &str) -> Result<Self::Output, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
println!("MyActor is announcing a Note");
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Ok(())
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn build_create() -> Create {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let mut act = Create::default();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
act.object_props
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.set_id_string(String::from("https://test.ap/activity"))
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let mut person = Person::default();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
person
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.object_props
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.set_id_string(String::from("https://test.ap/actor"))
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
act.create_props.set_actor_object(person).unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let mut note = Note::default();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
note.object_props
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.set_id_string(String::from("https://test.ap/note"))
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
act.create_props.set_object_object(note).unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
act
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
#[test]
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn test_inbox_basic() {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let act = serde_json::to_value(build_create()).unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let res: Result<(), ()> = Inbox::handle(&(), act)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.with::<MyActor, Create, MyObject>()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.done();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
assert!(res.is_ok());
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
#[test]
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn test_inbox_multi_handlers() {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let act = serde_json::to_value(build_create()).unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let res: Result<(), ()> = Inbox::handle(&(), act)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.with::<MyActor, Announce, MyObject>()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.with::<MyActor, Delete, MyObject>()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.with::<MyActor, Create, MyObject>()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.with::<MyActor, Like, MyObject>()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.done();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
assert!(res.is_ok());
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
#[test]
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn test_inbox_failure() {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let act = serde_json::to_value(build_create()).unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
// Create is not handled by this inbox
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let res: Result<(), ()> = Inbox::handle(&(), act)
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.with::<MyActor, Announce, MyObject>()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.with::<MyActor, Like, MyObject>()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.done();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
assert!(res.is_err());
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
struct FailingActor;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
impl FromId<()> for FailingActor {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Object = Person;
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn from_db(_: &(), _id: &str) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Err(())
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn from_activity(_: &(), _obj: Person) -> Result<Self, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Err(())
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
impl AsActor<&()> for FailingActor {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn get_inbox_url(&self) -> String {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
String::from("https://test.ap/failing-actor/inbox")
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn is_local(&self) -> bool {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
false
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
impl AsObject<FailingActor, Create, &()> for MyObject {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Error = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
type Output = ();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn activity(
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
self,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
_: &(),
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
_actor: FailingActor,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
_id: &str,
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
) -> Result<Self::Output, Self::Error> {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
println!("FailingActor is creating a Note");
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
Ok(())
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
#[test]
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
fn test_inbox_actor_failure() {
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let act = serde_json::to_value(build_create()).unwrap();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let res: Result<(), ()> = Inbox::handle(&(), act.clone())
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.with::<FailingActor, Create, MyObject>()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.done();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
assert!(res.is_err());
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
let res: Result<(), ()> = Inbox::handle(&(), act.clone())
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.with::<FailingActor, Create, MyObject>()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.with::<MyActor, Create, MyObject>()
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
.done();
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
assert!(res.is_ok());
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
||||
|
||||
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and as it is more of a lib kind, I don't think it is a good idea. Returning an Option<String> and `.expect()`ing on it would be better if possible
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
trinity-1686a
commented 5 years ago
Review
is it calling itself recursively? a is it calling itself recursively? a `{"id":{"id":{"id":{"id":"something"}}}` would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payload
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
what does the what does the `where` clause here mean? I've never seen `+ Debug` @_@
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
Review
given that this given that this `match` only has one match and else, `other`, maybe use `if let` here.
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
trinity-1686a
commented 5 years ago
Review
This mean that E must Implement This mean that E must Implement `From<InboxError<E>>` and `Debug` (`Debug` allow ugly display via `println!("{:?}", yourStruct)`) for the functions in this impl block to be available
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
is there such a thing as is there such a thing as `if not let`? so we can move this whole block out by one indent, by returning early?
Review
I don't think so… I don't think so…
Review
I don't think so… I don't think so…
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
There is match There is match
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
trinity-1686a
commented 5 years ago
Review
I don't think it can actually panic? Also the I don't think it can actually panic? Also the `Otherwise we return its 'id' field, if it is a string` is a bit unclear
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
Review
Yeah, I think I forgot to update the docs. Yeah, I think I forgot to update the docs.
|
@ -0,0 +1,487 @@
|
||||
use activitypub::activity::*;
|
||||
use serde_json;
|
||||
|
||||
use crate::{
|
||||
comments::Comment,
|
||||
follows, likes,
|
||||
posts::{Post, PostUpdate},
|
||||
reshares::Reshare,
|
||||
users::User,
|
||||
Error, PlumeRocket,
|
||||
};
|
||||
use plume_common::activity_pub::inbox::Inbox;
|
||||
|
||||
macro_rules! impl_into_inbox_result {
|
||||
( $( $t:ty => $variant:ident ),+ ) => {
|
||||
$(
|
||||
impl From<$t> for InboxResult {
|
||||
fn from(x: $t) -> InboxResult {
|
||||
InboxResult::$variant(x)
|
||||
}
|
||||
}
|
||||
)+
|
||||
}
|
||||
}
|
||||
|
||||
pub enum InboxResult {
|
||||
Commented(Comment),
|
||||
Followed(follows::Follow),
|
||||
Liked(likes::Like),
|
||||
Other,
|
||||
Post(Post),
|
||||
Reshared(Reshare),
|
||||
}
|
||||
|
||||
impl From<()> for InboxResult {
|
||||
fn from(_: ()) -> InboxResult {
|
||||
InboxResult::Other
|
||||
}
|
||||
}
|
||||
|
||||
impl_into_inbox_result! {
|
||||
Comment => Commented,
|
||||
follows::Follow => Followed,
|
||||
likes::Like => Liked,
|
||||
Post => Post,
|
||||
Reshare => Reshared
|
||||
}
|
||||
|
||||
pub fn inbox(ctx: &PlumeRocket, act: serde_json::Value) -> Result<InboxResult, Error> {
|
||||
Inbox::handle(ctx, act)
|
||||
.with::<User, Announce, Post>()
|
||||
.with::<User, Create, Comment>()
|
||||
.with::<User, Create, Post>()
|
||||
.with::<User, Delete, Comment>()
|
||||
.with::<User, Delete, Post>()
|
||||
.with::<User, Follow, User>()
|
||||
.with::<User, Like, Post>()
|
||||
.with::<User, Undo, Reshare>()
|
||||
.with::<User, Undo, follows::Follow>()
|
||||
.with::<User, Undo, likes::Like>()
|
||||
.with::<User, Update, PostUpdate>()
|
||||
.done()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub(crate) mod tests {
|
||||
use super::InboxResult;
|
||||
use crate::blogs::tests::fill_database as blog_fill_db;
|
||||
use crate::safe_string::SafeString;
|
||||
use crate::tests::rockets;
|
||||
use crate::PlumeRocket;
|
||||
use diesel::Connection;
|
||||
|
||||
pub fn fill_database(
|
||||
rockets: &PlumeRocket,
|
||||
) -> (
|
||||
Vec<crate::posts::Post>,
|
||||
Vec<crate::users::User>,
|
||||
Vec<crate::blogs::Blog>,
|
||||
) {
|
||||
use crate::post_authors::*;
|
||||
use crate::posts::*;
|
||||
|
||||
let (users, blogs) = blog_fill_db(&rockets.conn);
|
||||
let post = Post::insert(
|
||||
&rockets.conn,
|
||||
NewPost {
|
||||
blog_id: blogs[0].id,
|
||||
slug: "testing".to_owned(),
|
||||
title: "Testing".to_owned(),
|
||||
content: crate::safe_string::SafeString::new("Hello"),
|
||||
published: true,
|
||||
license: "WTFPL".to_owned(),
|
||||
creation_date: None,
|
||||
ap_url: format!("https://plu.me/~/{}/testing", blogs[0].actor_id),
|
||||
subtitle: String::new(),
|
||||
source: String::new(),
|
||||
cover_id: None,
|
||||
},
|
||||
&rockets.searcher,
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
PostAuthor::insert(
|
||||
&rockets.conn,
|
||||
NewPostAuthor {
|
||||
post_id: post.id,
|
||||
author_id: users[0].id,
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
(vec![post], users, blogs)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn announce_post() {
|
||||
let r = rockets();
|
||||
let conn = &*r.conn;
|
||||
conn.test_transaction::<_, (), _>(|| {
|
||||
let (posts, users, _) = fill_database(&r);
|
||||
let act = json!({
|
||||
"id": "https://plu.me/announce/1",
|
||||
"actor": users[0].ap_url,
|
||||
"object": posts[0].ap_url,
|
||||
"type": "Announce",
|
||||
});
|
||||
|
||||
match super::inbox(&r, act).unwrap() {
|
||||
super::InboxResult::Reshared(r) => {
|
||||
assert_eq!(r.post_id, posts[0].id);
|
||||
assert_eq!(r.user_id, users[0].id);
|
||||
assert_eq!(r.ap_url, "https://plu.me/announce/1".to_owned());
|
||||
}
|
||||
_ => panic!("Unexpected result"),
|
||||
};
|
||||
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn create_comment() {
|
||||
let r = rockets();
|
||||
let conn = &*r.conn;
|
||||
conn.test_transaction::<_, (), _>(|| {
|
||||
let (posts, users, _) = fill_database(&r);
|
||||
let act = json!({
|
||||
"id": "https://plu.me/comment/1/activity",
|
||||
"actor": users[0].ap_url,
|
||||
"object": {
|
||||
"type": "Note",
|
||||
"id": "https://plu.me/comment/1",
|
||||
"attributedTo": users[0].ap_url,
|
||||
"inReplyTo": posts[0].ap_url,
|
||||
"content": "Hello.",
|
||||
"to": [plume_common::activity_pub::PUBLIC_VISIBILITY]
|
||||
},
|
||||
"type": "Create",
|
||||
});
|
||||
|
||||
match super::inbox(&r, act).unwrap() {
|
||||
super::InboxResult::Commented(c) => {
|
||||
assert_eq!(c.author_id, users[0].id);
|
||||
assert_eq!(c.post_id, posts[0].id);
|
||||
assert_eq!(c.in_response_to_id, None);
|
||||
assert_eq!(c.content, SafeString::new("Hello."));
|
||||
assert!(c.public_visibility);
|
||||
}
|
||||
_ => panic!("Unexpected result"),
|
||||
};
|
||||
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn create_post() {
|
||||
let r = rockets();
|
||||
let conn = &*r.conn;
|
||||
conn.test_transaction::<_, (), _>(|| {
|
||||
let (_, users, blogs) = fill_database(&r);
|
||||
let act = json!({
|
||||
"id": "https://plu.me/comment/1/activity",
|
||||
"actor": users[0].ap_url,
|
||||
"object": {
|
||||
"type": "Article",
|
||||
"id": "https://plu.me/~/Blog/my-article",
|
||||
"attributedTo": [users[0].ap_url, blogs[0].ap_url],
|
||||
"content": "Hello.",
|
||||
"name": "My Article",
|
||||
"summary": "Bye.",
|
||||
"source": {
|
||||
"content": "Hello.",
|
||||
"mediaType": "text/markdown"
|
||||
},
|
||||
"published": "2014-12-12T12:12:12Z",
|
||||
"to": [plume_common::activity_pub::PUBLIC_VISIBILITY]
|
||||
},
|
||||
"type": "Create",
|
||||
});
|
||||
|
||||
match super::inbox(&r, act).unwrap() {
|
||||
super::InboxResult::Post(p) => {
|
||||
assert!(p.is_author(conn, users[0].id).unwrap());
|
||||
assert_eq!(p.source, "Hello.".to_owned());
|
||||
assert_eq!(p.blog_id, blogs[0].id);
|
||||
assert_eq!(p.content, SafeString::new("Hello."));
|
||||
assert_eq!(p.subtitle, "Bye.".to_owned());
|
||||
assert_eq!(p.title, "My Article".to_owned());
|
||||
}
|
||||
_ => panic!("Unexpected result"),
|
||||
};
|
||||
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn delete_comment() {
|
||||
use crate::comments::*;
|
||||
|
||||
let r = rockets();
|
||||
let conn = &*r.conn;
|
||||
conn.test_transaction::<_, (), _>(|| {
|
||||
let (posts, users, _) = fill_database(&r);
|
||||
Comment::insert(
|
||||
conn,
|
||||
NewComment {
|
||||
content: SafeString::new("My comment"),
|
||||
in_response_to_id: None,
|
||||
post_id: posts[0].id,
|
||||
author_id: users[0].id,
|
||||
ap_url: Some("https://plu.me/comment/1".to_owned()),
|
||||
sensitive: false,
|
||||
spoiler_text: "spoiler".to_owned(),
|
||||
public_visibility: true,
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
let fail_act = json!({
|
||||
"id": "https://plu.me/comment/1/delete",
|
||||
"actor": users[1].ap_url, // Not the author of the comment, it should fail
|
||||
"object": "https://plu.me/comment/1",
|
||||
"type": "Delete",
|
||||
});
|
||||
assert!(super::inbox(&r, fail_act).is_err());
|
||||
|
||||
let ok_act = json!({
|
||||
"id": "https://plu.me/comment/1/delete",
|
||||
"actor": users[0].ap_url,
|
||||
"object": "https://plu.me/comment/1",
|
||||
"type": "Delete",
|
||||
});
|
||||
assert!(super::inbox(&r, ok_act).is_ok());
|
||||
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn delete_post() {
|
||||
let r = rockets();
|
||||
let conn = &*r.conn;
|
||||
conn.test_transaction::<_, (), _>(|| {
|
||||
let (posts, users, _) = fill_database(&r);
|
||||
|
||||
let fail_act = json!({
|
||||
"id": "https://plu.me/comment/1/delete",
|
||||
"actor": users[1].ap_url, // Not the author of the post, it should fail
|
||||
"object": posts[0].ap_url,
|
||||
"type": "Delete",
|
||||
});
|
||||
assert!(super::inbox(&r, fail_act).is_err());
|
||||
|
||||
let ok_act = json!({
|
||||
"id": "https://plu.me/comment/1/delete",
|
||||
"actor": users[0].ap_url,
|
||||
"object": posts[0].ap_url,
|
||||
"type": "Delete",
|
||||
});
|
||||
assert!(super::inbox(&r, ok_act).is_ok());
|
||||
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn follow() {
|
||||
let r = rockets();
|
||||
let conn = &*r.conn;
|
||||
conn.test_transaction::<_, (), _>(|| {
|
||||
let (_, users, _) = fill_database(&r);
|
||||
|
||||
let act = json!({
|
||||
"id": "https://plu.me/follow/1",
|
||||
"actor": users[0].ap_url,
|
||||
"object": users[1].ap_url,
|
||||
"type": "Follow",
|
||||
});
|
||||
match super::inbox(&r, act).unwrap() {
|
||||
InboxResult::Followed(f) => {
|
||||
assert_eq!(f.follower_id, users[0].id);
|
||||
assert_eq!(f.following_id, users[1].id);
|
||||
assert_eq!(f.ap_url, "https://plu.me/follow/1".to_owned());
|
||||
}
|
||||
_ => panic!("Unexpected result"),
|
||||
}
|
||||
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn like() {
|
||||
let r = rockets();
|
||||
let conn = &*r.conn;
|
||||
conn.test_transaction::<_, (), _>(|| {
|
||||
let (posts, users, _) = fill_database(&r);
|
||||
|
||||
let act = json!({
|
||||
"id": "https://plu.me/like/1",
|
||||
"actor": users[1].ap_url,
|
||||
"object": posts[0].ap_url,
|
||||
"type": "Like",
|
||||
});
|
||||
match super::inbox(&r, act).unwrap() {
|
||||
InboxResult::Liked(l) => {
|
||||
assert_eq!(l.user_id, users[1].id);
|
||||
assert_eq!(l.post_id, posts[0].id);
|
||||
assert_eq!(l.ap_url, "https://plu.me/like/1".to_owned());
|
||||
}
|
||||
_ => panic!("Unexpected result"),
|
||||
}
|
||||
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn undo_reshare() {
|
||||
use crate::reshares::*;
|
||||
|
||||
let r = rockets();
|
||||
let conn = &*r.conn;
|
||||
conn.test_transaction::<_, (), _>(|| {
|
||||
let (posts, users, _) = fill_database(&r);
|
||||
|
||||
let announce = Reshare::insert(
|
||||
conn,
|
||||
NewReshare {
|
||||
post_id: posts[0].id,
|
||||
user_id: users[1].id,
|
||||
ap_url: "https://plu.me/announce/1".to_owned(),
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
let fail_act = json!({
|
||||
"id": "https://plu.me/undo/1",
|
||||
"actor": users[0].ap_url,
|
||||
"object": announce.ap_url,
|
||||
"type": "Undo",
|
||||
});
|
||||
assert!(super::inbox(&r, fail_act).is_err());
|
||||
|
||||
let ok_act = json!({
|
||||
"id": "https://plu.me/undo/1",
|
||||
"actor": users[1].ap_url,
|
||||
"object": announce.ap_url,
|
||||
"type": "Undo",
|
||||
});
|
||||
assert!(super::inbox(&r, ok_act).is_ok());
|
||||
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn undo_follow() {
|
||||
use crate::follows::*;
|
||||
|
||||
let r = rockets();
|
||||
let conn = &*r.conn;
|
||||
conn.test_transaction::<_, (), _>(|| {
|
||||
let (_, users, _) = fill_database(&r);
|
||||
|
||||
let follow = Follow::insert(
|
||||
conn,
|
||||
NewFollow {
|
||||
follower_id: users[0].id,
|
||||
following_id: users[1].id,
|
||||
ap_url: "https://plu.me/follow/1".to_owned(),
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
let fail_act = json!({
|
||||
"id": "https://plu.me/undo/1",
|
||||
"actor": users[2].ap_url,
|
||||
"object": follow.ap_url,
|
||||
"type": "Undo",
|
||||
});
|
||||
assert!(super::inbox(&r, fail_act).is_err());
|
||||
|
||||
let ok_act = json!({
|
||||
"id": "https://plu.me/undo/1",
|
||||
"actor": users[0].ap_url,
|
||||
"object": follow.ap_url,
|
||||
"type": "Undo",
|
||||
});
|
||||
assert!(super::inbox(&r, ok_act).is_ok());
|
||||
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn undo_like() {
|
||||
use crate::likes::*;
|
||||
|
||||
let r = rockets();
|
||||
let conn = &*r.conn;
|
||||
conn.test_transaction::<_, (), _>(|| {
|
||||
let (posts, users, _) = fill_database(&r);
|
||||
|
||||
let like = Like::insert(
|
||||
conn,
|
||||
NewLike {
|
||||
post_id: posts[0].id,
|
||||
user_id: users[1].id,
|
||||
ap_url: "https://plu.me/like/1".to_owned(),
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
let fail_act = json!({
|
||||
"id": "https://plu.me/undo/1",
|
||||
"actor": users[0].ap_url,
|
||||
"object": like.ap_url,
|
||||
"type": "Undo",
|
||||
});
|
||||
assert!(super::inbox(&r, fail_act).is_err());
|
||||
|
||||
let ok_act = json!({
|
||||
"id": "https://plu.me/undo/1",
|
||||
"actor": users[1].ap_url,
|
||||
"object": like.ap_url,
|
||||
"type": "Undo",
|
||||
});
|
||||
assert!(super::inbox(&r, ok_act).is_ok());
|
||||
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn update_post() {
|
||||
let r = rockets();
|
||||
let conn = &*r.conn;
|
||||
conn.test_transaction::<_, (), _>(|| {
|
||||
let (posts, users, _) = fill_database(&r);
|
||||
|
||||
let act = json!({
|
||||
"id": "https://plu.me/update/1",
|
||||
"actor": users[0].ap_url,
|
||||
"object": {
|
||||
"type": "Article",
|
||||
"id": posts[0].ap_url,
|
||||
"name": "Mia Artikolo",
|
||||
"summary": "Jes, mi parolas esperanton nun",
|
||||
"content": "<b>Saluton</b>, mi skribas testojn",
|
||||
"source": {
|
||||
"mediaType": "text/markdown",
|
||||
"content": "**Saluton**, mi skribas testojn"
|
||||
},
|
||||
},
|
||||
"type": "Update",
|
||||
});
|
||||
|
||||
super::inbox(&r, act).unwrap();
|
||||
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
}
|
@ -20,6 +20,7 @@ extern crate plume_api;
|
||||
extern crate plume_common;
|
||||
extern crate reqwest;
|
||||
extern crate rocket;
|
||||
extern crate rocket_i18n;
|
||||
extern crate scheduled_thread_pool;
|
||||
extern crate serde;
|
||||
#[macro_use]
|
||||
@ -36,6 +37,8 @@ extern crate whatlang;
|
||||
#[macro_use]
|
||||
extern crate diesel_migrations;
|
||||
|
||||
use plume_common::activity_pub::inbox::InboxError;
|
||||
|
||||
#[cfg(not(any(feature = "sqlite", feature = "postgres")))]
|
||||
compile_error!("Either feature \"sqlite\" or \"postgres\" must be enabled for this crate.");
|
||||
#[cfg(all(feature = "sqlite", feature = "postgres"))]
|
||||
@ -51,6 +54,7 @@ pub type Connection = diesel::PgConnection;
|
||||
#[derive(Debug)]
|
||||
pub enum Error {
|
||||
Db(diesel::result::Error),
|
||||
Inbox(Box<InboxError<Error>>),
|
||||
InvalidValue,
|
||||
Io(std::io::Error),
|
||||
MissingApProperty,
|
||||
@ -139,6 +143,15 @@ impl From<std::io::Error> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<InboxError<Error>> for Error {
|
||||
fn from(err: InboxError<Error>) -> Error {
|
||||
match err {
|
||||
InboxError::InvalidActor(Some(e)) | InboxError::InvalidObject(Some(e)) => e,
|
||||
e => Error::Inbox(Box::new(e)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
|
||||
pub type ApiResult<T> = std::result::Result<T, canapi::Error>;
|
||||
@ -288,7 +301,13 @@ pub fn ap_url(url: &str) -> String {
|
||||
#[cfg(test)]
|
||||
#[macro_use]
|
||||
mod tests {
|
||||
use diesel::{dsl::sql_query, Connection, RunQueryDsl};
|
||||
use db_conn;
|
||||
use diesel::r2d2::ConnectionManager;
|
||||
#[cfg(feature = "sqlite")]
|
||||
use diesel::{dsl::sql_query, RunQueryDsl};
|
||||
use scheduled_thread_pool::ScheduledThreadPool;
|
||||
use search;
|
||||
use std::sync::Arc;
|
||||
use Connection as Conn;
|
||||
use CONFIG;
|
||||
|
||||
@ -309,15 +328,28 @@ mod tests {
|
||||
};
|
||||
}
|
||||
|
||||
pub fn db() -> Conn {
|
||||
let conn = Conn::establish(CONFIG.database_url.as_str())
|
||||
.expect("Couldn't connect to the database");
|
||||
embedded_migrations::run(&conn).expect("Couldn't run migrations");
|
||||
#[cfg(feature = "sqlite")]
|
||||
sql_query("PRAGMA foreign_keys = on;")
|
||||
.execute(&conn)
|
||||
.expect("PRAGMA foreign_keys fail");
|
||||
conn
|
||||
pub fn db<'a>() -> db_conn::DbConn {
|
||||
db_conn::DbConn((*DB_POOL).get().unwrap())
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
static ref DB_POOL: db_conn::DbPool = {
|
||||
let pool = db_conn::DbPool::builder()
|
||||
.connection_customizer(Box::new(db_conn::PragmaForeignKey))
|
||||
.build(ConnectionManager::<Conn>::new(CONFIG.database_url.as_str()))
|
||||
.unwrap();
|
||||
embedded_migrations::run(&*pool.get().unwrap()).expect("Migrations error");
|
||||
pool
|
||||
};
|
||||
}
|
||||
|
||||
pub fn rockets() -> super::PlumeRocket {
|
||||
super::PlumeRocket {
|
||||
conn: db_conn::DbConn((*DB_POOL).get().unwrap()),
|
||||
searcher: Arc::new(search::tests::get_searcher()),
|
||||
worker: Arc::new(ScheduledThreadPool::new(2)),
|
||||
user: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -331,11 +363,13 @@ pub mod comments;
|
||||
pub mod db_conn;
|
||||
pub mod follows;
|
||||
pub mod headers;
|
||||
pub mod inbox;
|
||||
pub mod instance;
|
||||
pub mod likes;
|
||||
pub mod medias;
|
||||
pub mod mentions;
|
||||
pub mod notifications;
|
||||
pub mod plume_rocket;
|
||||
pub mod post_authors;
|
||||
pub mod posts;
|
||||
pub mod reshares;
|
||||
@ -344,3 +378,4 @@ pub mod schema;
|
||||
pub mod search;
|
||||
pub mod tags;
|
||||
pub mod users;
|
||||
pub use plume_rocket::PlumeRocket;
|
||||
trinity-1686a
commented 5 years ago
Review
does this mean no more warnings when building with pg backend? does this mean no more warnings when building with pg backend?
Review
Normally, yes. 🙂 Normally, yes. :slightly_smiling_face:
|
||||
|
@ -0,0 +1,80 @@
|
||||
pub use self::module::PlumeRocket;
|
||||
|
||||
#[cfg(not(test))]
|
||||
mod module {
|
||||
use crate::db_conn::DbConn;
|
||||
use crate::search;
|
||||
use crate::users;
|
||||
use rocket::{
|
||||
request::{self, FromRequest, Request},
|
||||
Outcome, State,
|
||||
};
|
||||
use scheduled_thread_pool::ScheduledThreadPool;
|
||||
use std::sync::Arc;
|
||||
|
||||
/// Common context needed by most routes and operations on models
|
||||
pub struct PlumeRocket {
|
||||
pub conn: DbConn,
|
||||
pub intl: rocket_i18n::I18n,
|
||||
pub user: Option<users::User>,
|
||||
pub searcher: Arc<search::Searcher>,
|
||||
pub worker: Arc<ScheduledThreadPool>,
|
||||
}
|
||||
|
||||
impl<'a, 'r> FromRequest<'a, 'r> for PlumeRocket {
|
||||
type Error = ();
|
||||
|
||||
fn from_request(request: &'a Request<'r>) -> request::Outcome<PlumeRocket, ()> {
|
||||
let conn = request.guard::<DbConn>()?;
|
||||
let intl = request.guard::<rocket_i18n::I18n>()?;
|
||||
let user = request.guard::<users::User>().succeeded();
|
||||
let worker = request.guard::<State<Arc<ScheduledThreadPool>>>()?;
|
||||
let searcher = request.guard::<State<Arc<search::Searcher>>>()?;
|
||||
Outcome::Success(PlumeRocket {
|
||||
conn,
|
||||
intl,
|
||||
user,
|
||||
worker: worker.clone(),
|
||||
searcher: searcher.clone(),
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod module {
|
||||
use crate::db_conn::DbConn;
|
||||
use crate::search;
|
||||
use crate::users;
|
||||
use rocket::{
|
||||
request::{self, FromRequest, Request},
|
||||
Outcome, State,
|
||||
};
|
||||
use scheduled_thread_pool::ScheduledThreadPool;
|
||||
use std::sync::Arc;
|
||||
|
||||
/// Common context needed by most routes and operations on models
|
||||
pub struct PlumeRocket {
|
||||
pub conn: DbConn,
|
||||
pub user: Option<users::User>,
|
||||
pub searcher: Arc<search::Searcher>,
|
||||
pub worker: Arc<ScheduledThreadPool>,
|
||||
}
|
||||
|
||||
impl<'a, 'r> FromRequest<'a, 'r> for PlumeRocket {
|
||||
type Error = ();
|
||||
|
||||
fn from_request(request: &'a Request<'r>) -> request::Outcome<PlumeRocket, ()> {
|
||||
let conn = request.guard::<DbConn>()?;
|
||||
let user = request.guard::<users::User>().succeeded();
|
||||
let worker = request.guard::<State<Arc<ScheduledThreadPool>>>()?;
|
||||
let searcher = request.guard::<State<Arc<search::Searcher>>>()?;
|
||||
Outcome::Success(PlumeRocket {
|
||||
conn,
|
||||
user,
|
||||
worker: worker.clone(),
|
||||
searcher: searcher.clone(),
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
@ -8,7 +8,6 @@ use canapi::{Error as ApiError, Provider};
|
||||
use chrono::{NaiveDateTime, TimeZone, Utc};
|
||||
use diesel::{self, BelongingToDsl, ExpressionMethods, QueryDsl, RunQueryDsl, SaveChangesDsl};
|
||||
use heck::{CamelCase, KebabCase};
|
||||
use scheduled_thread_pool::ScheduledThreadPool as Worker;
|
||||
use serde_json;
|
||||
use std::collections::HashSet;
|
||||
|
||||
@ -20,8 +19,8 @@ use plume_api::posts::PostEndpoint;
|
||||
use plume_common::{
|
||||
activity_pub::{
|
||||
broadcast,
|
||||
inbox::{Deletable, FromActivity},
|
||||
Hashtag, Id, IntoId, Licensed, Source, PUBLIC_VISIBILTY,
|
||||
inbox::{AsObject, FromId},
|
||||
Hashtag, Id, IntoId, Licensed, Source, PUBLIC_VISIBILITY,
|
||||
},
|
||||
utils::md_to_html,
|
||||
};
|
||||
@ -31,7 +30,7 @@ use schema::posts;
|
||||
use search::Searcher;
|
||||
use tags::*;
|
||||
use users::User;
|
||||
use {ap_url, ApiResult, Connection, Error, Result, CONFIG};
|
||||
use {ap_url, ApiResult, Connection, Error, PlumeRocket, Result, CONFIG};
|
||||
|
||||
pub type LicensedArticle = CustomObject<Licensed, Article>;
|
||||
|
||||
@ -68,17 +67,17 @@ pub struct NewPost {
|
||||
pub cover_id: Option<i32>,
|
||||
}
|
||||
|
||||
impl<'a> Provider<(&'a Connection, &'a Worker, &'a Searcher, Option<i32>)> for Post {
|
||||
impl Provider<PlumeRocket> for Post {
|
||||
type Data = PostEndpoint;
|
||||
|
||||
fn get(
|
||||
(conn, _worker, _search, user_id): &(&Connection, &Worker, &Searcher, Option<i32>),
|
||||
id: i32,
|
||||
) -> ApiResult<PostEndpoint> {
|
||||
fn get(rockets: &PlumeRocket, id: i32) -> ApiResult<PostEndpoint> {
|
||||
let conn = &*rockets.conn;
|
||||
if let Ok(post) = Post::get(conn, id) {
|
||||
if !post.published
|
||||
&& !user_id
|
||||
.map(|u| post.is_author(conn, u).unwrap_or(false))
|
||||
&& !rockets
|
||||
.user
|
||||
.as_ref()
|
||||
.and_then(|u| post.is_author(conn, u.id).ok())
|
||||
.unwrap_or(false)
|
||||
{
|
||||
return Err(ApiError::Authorization(
|
||||
@ -115,10 +114,8 @@ impl<'a> Provider<(&'a Connection, &'a Worker, &'a Searcher, Option<i32>)> for P
|
||||
}
|
||||
}
|
||||
|
||||
fn list(
|
||||
(conn, _worker, _search, user_id): &(&Connection, &Worker, &Searcher, Option<i32>),
|
||||
filter: PostEndpoint,
|
||||
) -> Vec<PostEndpoint> {
|
||||
fn list(rockets: &PlumeRocket, filter: PostEndpoint) -> Vec<PostEndpoint> {
|
||||
let conn = &*rockets.conn;
|
||||
let mut query = posts::table.into_boxed();
|
||||
if let Some(title) = filter.title {
|
||||
query = query.filter(posts::title.eq(title));
|
||||
@ -131,13 +128,15 @@ impl<'a> Provider<(&'a Connection, &'a Worker, &'a Searcher, Option<i32>)> for P
|
||||
}
|
||||
|
||||
query
|
||||
.get_results::<Post>(*conn)
|
||||
.get_results::<Post>(conn)
|
||||
.map(|ps| {
|
||||
ps.into_iter()
|
||||
.filter(|p| {
|
||||
p.published
|
||||
|| user_id
|
||||
.map(|u| p.is_author(conn, u).unwrap_or(false))
|
||||
|| rockets
|
||||
.user
|
||||
.as_ref()
|
||||
.and_then(|u| p.is_author(conn, u.id).ok())
|
||||
.unwrap_or(false)
|
||||
})
|
||||
.map(|p| PostEndpoint {
|
||||
@ -166,31 +165,33 @@ impl<'a> Provider<(&'a Connection, &'a Worker, &'a Searcher, Option<i32>)> for P
|
||||
}
|
||||
|
||||
fn update(
|
||||
(_conn, _worker, _search, _user_id): &(&Connection, &Worker, &Searcher, Option<i32>),
|
||||
_rockets: &PlumeRocket,
|
||||
_id: i32,
|
||||
_new_data: PostEndpoint,
|
||||
) -> ApiResult<PostEndpoint> {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn delete(
|
||||
(conn, _worker, search, user_id): &(&Connection, &Worker, &Searcher, Option<i32>),
|
||||
id: i32,
|
||||
) {
|
||||
let user_id = user_id.expect("Post as Provider::delete: not authenticated");
|
||||
fn delete(rockets: &PlumeRocket, id: i32) {
|
||||
let conn = &*rockets.conn;
|
||||
let user_id = rockets
|
||||
.user
|
||||
.as_ref()
|
||||
.expect("Post as Provider::delete: not authenticated")
|
||||
.id;
|
||||
if let Ok(post) = Post::get(conn, id) {
|
||||
if post.is_author(conn, user_id).unwrap_or(false) {
|
||||
post.delete(&(conn, search))
|
||||
post.delete(conn, &rockets.searcher)
|
||||
.expect("Post as Provider::delete: delete error");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn create(
|
||||
(conn, worker, search, user_id): &(&Connection, &Worker, &Searcher, Option<i32>),
|
||||
query: PostEndpoint,
|
||||
) -> ApiResult<PostEndpoint> {
|
||||
if user_id.is_none() {
|
||||
fn create(rockets: &PlumeRocket, query: PostEndpoint) -> ApiResult<PostEndpoint> {
|
||||
let conn = &*rockets.conn;
|
||||
let search = &rockets.searcher;
|
||||
let worker = &rockets.worker;
|
||||
if rockets.user.is_none() {
|
||||
return Err(ApiError::Authorization(
|
||||
"You are not authorized to create new articles.".to_string(),
|
||||
));
|
||||
@ -207,11 +208,10 @@ impl<'a> Provider<(&'a Connection, &'a Worker, &'a Searcher, Option<i32>)> for P
|
||||
let domain = &Instance::get_local(&conn)
|
||||
.map_err(|_| ApiError::NotFound("posts::update: Error getting local instance".into()))?
|
||||
.public_domain;
|
||||
let author = User::get(
|
||||
conn,
|
||||
user_id.expect("<Post as Provider>::create: no user_id error"),
|
||||
)
|
||||
.map_err(|_| ApiError::NotFound("Author not found".into()))?;
|
||||
let author = rockets
|
||||
.user
|
||||
.clone()
|
||||
.ok_or_else(|| ApiError::NotFound("Author not found".into()))?;
|
||||
|
||||
let (content, mentions, hashtags) = md_to_html(
|
||||
query.source.clone().unwrap_or_default().clone().as_ref(),
|
||||
@ -298,7 +298,7 @@ impl<'a> Provider<(&'a Connection, &'a Worker, &'a Searcher, Option<i32>)> for P
|
||||
for m in mentions.into_iter() {
|
||||
Mention::from_activity(
|
||||
&*conn,
|
||||
&Mention::build_activity(&*conn, &m)
|
||||
&Mention::build_activity(&rockets, &m)
|
||||
.map_err(|_| ApiError::NotFound("Couldn't build mentions".into()))?,
|
||||
post.id,
|
||||
true,
|
||||
@ -367,6 +367,7 @@ impl Post {
|
||||
searcher.add_document(conn, &post)?;
|
||||
Ok(post)
|
||||
}
|
||||
|
||||
pub fn update(&self, conn: &Connection, searcher: &Searcher) -> Result<Self> {
|
||||
diesel::update(self).set(self).execute(conn)?;
|
||||
let post = Self::get(conn, self.id)?;
|
||||
@ -374,6 +375,15 @@ impl Post {
|
||||
Ok(post)
|
||||
}
|
||||
|
||||
pub fn delete(&self, conn: &Connection, searcher: &Searcher) -> Result<()> {
|
||||
for m in Mention::list_for_post(&conn, self.id)? {
|
||||
m.delete(conn)?;
|
||||
}
|
||||
diesel::delete(self).execute(conn)?;
|
||||
searcher.delete_document(self);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn list_by_tag(
|
||||
conn: &Connection,
|
||||
tag: String,
|
||||
@ -625,7 +635,7 @@ impl Post {
|
||||
|
||||
pub fn to_activity(&self, conn: &Connection) -> Result<LicensedArticle> {
|
||||
let cc = self.get_receivers_urls(conn)?;
|
||||
let to = vec![PUBLIC_VISIBILTY.to_string()];
|
||||
let to = vec![PUBLIC_VISIBILITY.to_string()];
|
||||
|
||||
let mut mentions_json = Mention::list_for_post(conn, self.id)?
|
||||
.into_iter()
|
||||
@ -726,77 +736,6 @@ impl Post {
|
||||
Ok(act)
|
||||
}
|
||||
|
||||
pub fn handle_update(
|
||||
conn: &Connection,
|
||||
updated: &LicensedArticle,
|
||||
searcher: &Searcher,
|
||||
) -> Result<()> {
|
||||
let id = updated.object.object_props.id_string()?;
|
||||
let mut post = Post::find_by_ap_url(conn, &id)?;
|
||||
|
||||
if let Ok(title) = updated.object.object_props.name_string() {
|
||||
post.slug = title.to_kebab_case();
|
||||
post.title = title;
|
||||
}
|
||||
|
||||
if let Ok(content) = updated.object.object_props.content_string() {
|
||||
post.content = SafeString::new(&content);
|
||||
}
|
||||
|
||||
if let Ok(subtitle) = updated.object.object_props.summary_string() {
|
||||
post.subtitle = subtitle;
|
||||
}
|
||||
|
||||
if let Ok(ap_url) = updated.object.object_props.url_string() {
|
||||
post.ap_url = ap_url;
|
||||
}
|
||||
|
||||
if let Ok(source) = updated.object.ap_object_props.source_object::<Source>() {
|
||||
post.source = source.content;
|
||||
}
|
||||
|
||||
if let Ok(license) = updated.custom_props.license_string() {
|
||||
post.license = license;
|
||||
}
|
||||
|
||||
let mut txt_hashtags = md_to_html(&post.source, "", false, None)
|
||||
.2
|
||||
.into_iter()
|
||||
.map(|s| s.to_camel_case())
|
||||
.collect::<HashSet<_>>();
|
||||
if let Some(serde_json::Value::Array(mention_tags)) =
|
||||
updated.object.object_props.tag.clone()
|
||||
{
|
||||
let mut mentions = vec![];
|
||||
let mut tags = vec![];
|
||||
let mut hashtags = vec![];
|
||||
for tag in mention_tags {
|
||||
serde_json::from_value::<link::Mention>(tag.clone())
|
||||
.map(|m| mentions.push(m))
|
||||
.ok();
|
||||
|
||||
serde_json::from_value::<Hashtag>(tag.clone())
|
||||
.map_err(Error::from)
|
||||
.and_then(|t| {
|
||||
let tag_name = t.name_string()?;
|
||||
if txt_hashtags.remove(&tag_name) {
|
||||
hashtags.push(t);
|
||||
} else {
|
||||
tags.push(t);
|
||||
}
|
||||
Ok(())
|
||||
})
|
||||
.ok();
|
||||
}
|
||||
post.update_mentions(conn, mentions)?;
|
||||
post.update_tags(conn, tags)?;
|
||||
post.update_hashtags(conn, hashtags)?;
|
||||
}
|
||||
|
||||
post.update(conn, searcher)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn update_mentions(&self, conn: &Connection, mentions: Vec<link::Mention>) -> Result<()> {
|
||||
let mentions = mentions
|
||||
.into_iter()
|
||||
@ -925,154 +864,374 @@ impl Post {
|
||||
.and_then(|i| Media::get(conn, i).ok())
|
||||
.and_then(|c| c.url(conn).ok())
|
||||
}
|
||||
|
||||
pub fn build_delete(&self, conn: &Connection) -> Result<Delete> {
|
||||
let mut act = Delete::default();
|
||||
act.delete_props
|
||||
.set_actor_link(self.get_authors(conn)?[0].clone().into_id())?;
|
||||
|
||||
let mut tombstone = Tombstone::default();
|
||||
tombstone.object_props.set_id_string(self.ap_url.clone())?;
|
||||
act.delete_props.set_object_object(tombstone)?;
|
||||
|
||||
act.object_props
|
||||
.set_id_string(format!("{}#delete", self.ap_url))?;
|
||||
act.object_props
|
||||
.set_to_link_vec(vec![Id::new(PUBLIC_VISIBILITY)])?;
|
||||
Ok(act)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> FromActivity<LicensedArticle, (&'a Connection, &'a Searcher)> for Post {
|
||||
impl FromId<PlumeRocket> for Post {
|
||||
type Error = Error;
|
||||
type Object = LicensedArticle;
|
||||
|
||||
fn from_db(c: &PlumeRocket, id: &str) -> Result<Self> {
|
||||
Self::find_by_ap_url(&c.conn, id)
|
||||
}
|
||||
|
||||
fn from_activity(
|
||||
(conn, searcher): &(&'a Connection, &'a Searcher),
|
||||
article: LicensedArticle,
|
||||
_actor: Id,
|
||||
) -> Result<Post> {
|
||||
fn from_activity(c: &PlumeRocket, article: LicensedArticle) -> Result<Self> {
|
||||
let conn = &*c.conn;
|
||||
let searcher = &c.searcher;
|
||||
let license = article.custom_props.license_string().unwrap_or_default();
|
||||
let article = article.object;
|
||||
if let Ok(post) =
|
||||
Post::find_by_ap_url(conn, &article.object_props.id_string().unwrap_or_default())
|
||||
{
|
||||
Ok(post)
|
||||
} else {
|
||||
let (blog, authors) = article
|
||||
.object_props
|
||||
.attributed_to_link_vec::<Id>()?
|
||||
.into_iter()
|
||||
.fold((None, vec![]), |(blog, mut authors), link| {
|
||||
let url: String = link.into();
|
||||
match User::from_url(conn, &url) {
|
||||
Ok(u) => {
|
||||
authors.push(u);
|
||||
(blog, authors)
|
||||
}
|
||||
Err(_) => (blog.or_else(|| Blog::from_url(conn, &url).ok()), authors),
|
||||
|
||||
let (blog, authors) = article
|
||||
.object_props
|
||||
.attributed_to_link_vec::<Id>()?
|
||||
.into_iter()
|
||||
.fold((None, vec![]), |(blog, mut authors), link| {
|
||||
let url: String = link.into();
|
||||
match User::from_id(&c, &url, None) {
|
||||
Ok(u) => {
|
||||
authors.push(u);
|
||||
(blog, authors)
|
||||
}
|
||||
});
|
||||
Err(_) => (blog.or_else(|| Blog::from_id(&c, &url, None).ok()), authors),
|
||||
}
|
||||
});
|
||||
|
||||
let cover = article
|
||||
.object_props
|
||||
.icon_object::<Image>()
|
||||
.ok()
|
||||
.and_then(|img| Media::from_activity(conn, &img).ok().map(|m| m.id));
|
||||
let cover = article
|
||||
.object_props
|
||||
.icon_object::<Image>()
|
||||
.ok()
|
||||
.and_then(|img| Media::from_activity(&c, &img).ok().map(|m| m.id));
|
||||
|
||||
let title = article.object_props.name_string()?;
|
||||
let post = Post::insert(
|
||||
let title = article.object_props.name_string()?;
|
||||
let post = Post::insert(
|
||||
conn,
|
||||
NewPost {
|
||||
blog_id: blog?.id,
|
||||
slug: title.to_kebab_case(),
|
||||
title,
|
||||
content: SafeString::new(&article.object_props.content_string()?),
|
||||
published: true,
|
||||
license,
|
||||
// FIXME: This is wrong: with this logic, we may use the display URL as the AP ID. We need two different fields
|
||||
ap_url: article
|
||||
.object_props
|
||||
.url_string()
|
||||
.or_else(|_| article.object_props.id_string())?,
|
||||
creation_date: Some(article.object_props.published_utctime()?.naive_utc()),
|
||||
subtitle: article.object_props.summary_string()?,
|
||||
source: article.ap_object_props.source_object::<Source>()?.content,
|
||||
cover_id: cover,
|
||||
},
|
||||
searcher,
|
||||
)?;
|
||||
|
||||
for author in authors {
|
||||
PostAuthor::insert(
|
||||
conn,
|
||||
NewPost {
|
||||
blog_id: blog?.id,
|
||||
slug: title.to_kebab_case(),
|
||||
title,
|
||||
content: SafeString::new(&article.object_props.content_string()?),
|
||||
published: true,
|
||||
license,
|
||||
// FIXME: This is wrong: with this logic, we may use the display URL as the AP ID. We need two different fields
|
||||
ap_url: article
|
||||
.object_props
|
||||
.url_string()
|
||||
.or_else(|_| article.object_props.id_string())?,
|
||||
creation_date: Some(article.object_props.published_utctime()?.naive_utc()),
|
||||
subtitle: article.object_props.summary_string()?,
|
||||
source: article.ap_object_props.source_object::<Source>()?.content,
|
||||
cover_id: cover,
|
||||
NewPostAuthor {
|
||||
post_id: post.id,
|
||||
author_id: author.id,
|
||||
},
|
||||
searcher,
|
||||
)?;
|
||||
}
|
||||
|
||||
for author in authors {
|
||||
PostAuthor::insert(
|
||||
conn,
|
||||
NewPostAuthor {
|
||||
post_id: post.id,
|
||||
author_id: author.id,
|
||||
},
|
||||
)?;
|
||||
}
|
||||
// save mentions and tags
|
||||
let mut hashtags = md_to_html(&post.source, "", false, None)
|
||||
.2
|
||||
.into_iter()
|
||||
.map(|s| s.to_camel_case())
|
||||
.collect::<HashSet<_>>();
|
||||
if let Some(serde_json::Value::Array(tags)) = article.object_props.tag.clone() {
|
||||
for tag in tags {
|
||||
serde_json::from_value::<link::Mention>(tag.clone())
|
||||
.map(|m| Mention::from_activity(conn, &m, post.id, true, true))
|
||||
.ok();
|
||||
|
||||
// save mentions and tags
|
||||
let mut hashtags = md_to_html(&post.source, "", false, None)
|
||||
.2
|
||||
.into_iter()
|
||||
.map(|s| s.to_camel_case())
|
||||
.collect::<HashSet<_>>();
|
||||
if let Some(serde_json::Value::Array(tags)) = article.object_props.tag.clone() {
|
||||
for tag in tags {
|
||||
serde_json::from_value::<link::Mention>(tag.clone())
|
||||
.map(|m| Mention::from_activity(conn, &m, post.id, true, true))
|
||||
.ok();
|
||||
|
||||
serde_json::from_value::<Hashtag>(tag.clone())
|
||||
.map_err(Error::from)
|
||||
.and_then(|t| {
|
||||
let tag_name = t.name_string()?;
|
||||
Ok(Tag::from_activity(
|
||||
conn,
|
||||
&t,
|
||||
post.id,
|
||||
hashtags.remove(&tag_name),
|
||||
))
|
||||
})
|
||||
.ok();
|
||||
}
|
||||
serde_json::from_value::<Hashtag>(tag.clone())
|
||||
.map_err(Error::from)
|
||||
.and_then(|t| {
|
||||
let tag_name = t.name_string()?;
|
||||
Ok(Tag::from_activity(
|
||||
conn,
|
||||
&t,
|
||||
post.id,
|
||||
hashtags.remove(&tag_name),
|
||||
))
|
||||
})
|
||||
.ok();
|
||||
}
|
||||
Ok(post)
|
||||
}
|
||||
Ok(post)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Deletable<(&'a Connection, &'a Searcher), Delete> for Post {
|
||||
impl AsObject<User, Create, &PlumeRocket> for Post {
|
||||
type Error = Error;
|
||||
type Output = Post;
|
||||
|
||||
fn delete(&self, (conn, searcher): &(&Connection, &Searcher)) -> Result<Delete> {
|
||||
let mut act = Delete::default();
|
||||
act.delete_props
|
||||
.set_actor_link(self.get_authors(conn)?[0].clone().into_id())?;
|
||||
|
||||
let mut tombstone = Tombstone::default();
|
||||
tombstone.object_props.set_id_string(self.ap_url.clone())?;
|
||||
act.delete_props.set_object_object(tombstone)?;
|
||||
|
||||
act.object_props
|
||||
.set_id_string(format!("{}#delete", self.ap_url))?;
|
||||
act.object_props
|
||||
.set_to_link_vec(vec![Id::new(PUBLIC_VISIBILTY)])?;
|
||||
|
||||
for m in Mention::list_for_post(&conn, self.id)? {
|
||||
m.delete(conn)?;
|
||||
}
|
||||
diesel::delete(self).execute(*conn)?;
|
||||
searcher.delete_document(self);
|
||||
Ok(act)
|
||||
fn activity(self, _c: &PlumeRocket, _actor: User, _id: &str) -> Result<Post> {
|
||||
// TODO: check that _actor is actually one of the author?
|
||||
Ok(self)
|
||||
}
|
||||
}
|
||||
|
||||
fn delete_id(
|
||||
id: &str,
|
||||
actor_id: &str,
|
||||
(conn, searcher): &(&Connection, &Searcher),
|
||||
) -> Result<Delete> {
|
||||
let actor = User::find_by_ap_url(conn, actor_id)?;
|
||||
let post = Post::find_by_ap_url(conn, id)?;
|
||||
let can_delete = post
|
||||
.get_authors(conn)?
|
||||
impl AsObject<User, Delete, &PlumeRocket> for Post {
|
||||
type Error = Error;
|
||||
type Output = ();
|
||||
|
||||
fn activity(self, c: &PlumeRocket, actor: User, _id: &str) -> Result<()> {
|
||||
let can_delete = self
|
||||
.get_authors(&c.conn)?
|
||||
.into_iter()
|
||||
.any(|a| actor.id == a.id);
|
||||
if can_delete {
|
||||
post.delete(&(conn, searcher))
|
||||
self.delete(&c.conn, &c.searcher).map(|_| ())
|
||||
} else {
|
||||
Err(Error::Unauthorized)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub struct PostUpdate {
|
||||
pub ap_url: String,
|
||||
pub title: Option<String>,
|
||||
pub subtitle: Option<String>,
|
||||
pub content: Option<String>,
|
||||
pub cover: Option<i32>,
|
||||
pub source: Option<String>,
|
||||
pub license: Option<String>,
|
||||
pub tags: Option<serde_json::Value>,
|
||||
}
|
||||
|
||||
impl FromId<PlumeRocket> for PostUpdate {
|
||||
type Error = Error;
|
||||
type Object = LicensedArticle;
|
||||
|
||||
fn from_db(_: &PlumeRocket, _: &str) -> Result<Self> {
|
||||
// Always fail because we always want to deserialize the AP object
|
||||
Err(Error::NotFound)
|
||||
}
|
||||
|
||||
fn from_activity(c: &PlumeRocket, updated: LicensedArticle) -> Result<Self> {
|
||||
Ok(PostUpdate {
|
||||
ap_url: updated.object.object_props.id_string()?,
|
||||
title: updated.object.object_props.name_string().ok(),
|
||||
subtitle: updated.object.object_props.summary_string().ok(),
|
||||
content: updated.object.object_props.content_string().ok(),
|
||||
cover: updated
|
||||
.object
|
||||
.object_props
|
||||
.icon_object::<Image>()
|
||||
.ok()
|
||||
.and_then(|img| Media::from_activity(&c, &img).ok().map(|m| m.id)),
|
||||
source: updated
|
||||
.object
|
||||
.ap_object_props
|
||||
.source_object::<Source>()
|
||||
.ok()
|
||||
.map(|x| x.content),
|
||||
license: updated.custom_props.license_string().ok(),
|
||||
tags: updated.object.object_props.tag.clone(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl AsObject<User, Update, &PlumeRocket> for PostUpdate {
|
||||
type Error = Error;
|
||||
type Output = ();
|
||||
|
||||
fn activity(self, c: &PlumeRocket, actor: User, _id: &str) -> Result<()> {
|
||||
let conn = &*c.conn;
|
||||
let searcher = &c.searcher;
|
||||
let mut post = Post::from_id(c, &self.ap_url, None).map_err(|(_, e)| e)?;
|
||||
|
||||
if !post.is_author(conn, actor.id)? {
|
||||
// TODO: maybe the author was added in the meantime
|
||||
return Err(Error::Unauthorized);
|
||||
}
|
||||
|
||||
if let Some(title) = self.title {
|
||||
post.slug = title.to_kebab_case();
|
||||
post.title = title;
|
||||
}
|
||||
|
||||
if let Some(content) = self.content {
|
||||
post.content = SafeString::new(&content);
|
||||
}
|
||||
|
||||
if let Some(subtitle) = self.subtitle {
|
||||
post.subtitle = subtitle;
|
||||
}
|
||||
|
||||
post.cover_id = self.cover;
|
||||
|
||||
if let Some(source) = self.source {
|
||||
post.source = source;
|
||||
}
|
||||
|
||||
if let Some(license) = self.license {
|
||||
post.license = license;
|
||||
}
|
||||
|
||||
let mut txt_hashtags = md_to_html(&post.source, "", false, None)
|
||||
.2
|
||||
.into_iter()
|
||||
.map(|s| s.to_camel_case())
|
||||
.collect::<HashSet<_>>();
|
||||
if let Some(serde_json::Value::Array(mention_tags)) = self.tags {
|
||||
let mut mentions = vec![];
|
||||
let mut tags = vec![];
|
||||
let mut hashtags = vec![];
|
||||
for tag in mention_tags {
|
||||
serde_json::from_value::<link::Mention>(tag.clone())
|
||||
.map(|m| mentions.push(m))
|
||||
.ok();
|
||||
|
||||
serde_json::from_value::<Hashtag>(tag.clone())
|
||||
.map_err(Error::from)
|
||||
.and_then(|t| {
|
||||
let tag_name = t.name_string()?;
|
||||
if txt_hashtags.remove(&tag_name) {
|
||||
hashtags.push(t);
|
||||
} else {
|
||||
tags.push(t);
|
||||
}
|
||||
Ok(())
|
||||
})
|
||||
.ok();
|
||||
}
|
||||
post.update_mentions(conn, mentions)?;
|
||||
post.update_tags(conn, tags)?;
|
||||
post.update_hashtags(conn, hashtags)?;
|
||||
}
|
||||
|
||||
post.update(conn, searcher)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl IntoId for Post {
|
||||
fn into_id(self) -> Id {
|
||||
Id::new(self.ap_url.clone())
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::inbox::{inbox, tests::fill_database, InboxResult};
|
||||
use crate::safe_string::SafeString;
|
||||
use crate::tests::rockets;
|
||||
use diesel::Connection;
|
||||
|
||||
// creates a post, get it's Create activity, delete the post,
|
||||
// "send" the Create to the inbox, and check it works
|
||||
#[test]
|
||||
fn self_federation() {
|
||||
let r = rockets();
|
||||
let conn = &*r.conn;
|
||||
conn.test_transaction::<_, (), _>(|| {
|
||||
let (_, users, blogs) = fill_database(&r);
|
||||
let post = Post::insert(
|
||||
conn,
|
||||
NewPost {
|
||||
blog_id: blogs[0].id,
|
||||
slug: "yo".into(),
|
||||
title: "Yo".into(),
|
||||
content: SafeString::new("Hello"),
|
||||
published: true,
|
||||
license: "WTFPL".to_string(),
|
||||
creation_date: None,
|
||||
ap_url: String::new(), // automatically updated when inserting
|
||||
subtitle: "Testing".into(),
|
||||
source: "Hello".into(),
|
||||
cover_id: None,
|
||||
},
|
||||
&r.searcher,
|
||||
)
|
||||
.unwrap();
|
||||
PostAuthor::insert(
|
||||
conn,
|
||||
NewPostAuthor {
|
||||
post_id: post.id,
|
||||
author_id: users[0].id,
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
let create = post.create_activity(conn).unwrap();
|
||||
post.delete(conn, &r.searcher).unwrap();
|
||||
|
||||
match inbox(&r, serde_json::to_value(create).unwrap()).unwrap() {
|
||||
InboxResult::Post(p) => {
|
||||
assert!(p.is_author(conn, users[0].id).unwrap());
|
||||
assert_eq!(p.source, "Hello".to_owned());
|
||||
assert_eq!(p.blog_id, blogs[0].id);
|
||||
assert_eq!(p.content, SafeString::new("Hello"));
|
||||
assert_eq!(p.subtitle, "Testing".to_owned());
|
||||
assert_eq!(p.title, "Yo".to_owned());
|
||||
}
|
||||
_ => panic!("Unexpected result"),
|
||||
};
|
||||
|
||||
Ok(())
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn licensed_article_serde() {
|
||||
let mut article = Article::default();
|
||||
article.object_props.set_id_string("Yo".into()).unwrap();
|
||||
let mut license = Licensed::default();
|
||||
license.set_license_string("WTFPL".into()).unwrap();
|
||||
let full_article = LicensedArticle::new(article, license);
|
||||
|
||||
let json = serde_json::to_value(full_article).unwrap();
|
||||
let article_from_json: LicensedArticle = serde_json::from_value(json).unwrap();
|
||||
assert_eq!(
|
||||
"Yo",
|
||||
&article_from_json.object.object_props.id_string().unwrap()
|
||||
);
|
||||
assert_eq!(
|
||||
"WTFPL",
|
||||
&article_from_json.custom_props.license_string().unwrap()
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn licensed_article_deserialization() {
|
||||
let json = json!({
|
||||
"type": "Article",
|
||||
"id": "https://plu.me/~/Blog/my-article",
|
||||
"attributedTo": ["https://plu.me/@/Admin", "https://plu.me/~/Blog"],
|
||||
"content": "Hello.",
|
||||
"name": "My Article",
|
||||
"summary": "Bye.",
|
||||
"source": {
|
||||
"content": "Hello.",
|
||||
"mediaType": "text/markdown"
|
||||
},
|
||||
"published": "2014-12-12T12:12:12Z",
|
||||
"to": [plume_common::activity_pub::PUBLIC_VISIBILITY]
|
||||
});
|
||||
let article: LicensedArticle = serde_json::from_value(json).unwrap();
|
||||
assert_eq!(
|
||||
"https://plu.me/~/Blog/my-article",
|
||||
&article.object.object_props.id_string().unwrap()
|
||||
);
|
||||
}
|
||||
}
|
||||
trinity-1686a
commented 5 years ago
Review
is this related to #296 ? is this related to #296 ?
Review
More or less I think. Adding a More or less I think. Adding a `url` field to posts could solve both issues.
|
||||
|
@ -1,171 +1,68 @@
|
||||
#![warn(clippy::too_many_arguments)]
|
||||
use activitypub::{
|
||||
activity::{Announce, Create, Delete, Follow as FollowAct, Like, Undo, Update},
|
||||
object::Tombstone,
|
||||
};
|
||||
use failure::Error;
|
||||
use rocket::{data::*, http::Status, Outcome::*, Request};
|
||||
use rocket_contrib::json::*;
|
||||
use serde::Deserialize;
|
||||
use serde_json;
|
||||
|
||||
use std::io::Read;
|
||||
|
||||
use plume_common::activity_pub::{
|
||||
inbox::{Deletable, FromActivity, InboxError, Notify},
|
||||
inbox::FromId,
|
||||
request::Digest,
|
||||
Id,
|
||||
sign::{verify_http_headers, Signable},
|
||||
};
|
||||
use plume_models::{
|
||||
comments::Comment, follows::Follow, instance::Instance, likes, posts::Post, reshares::Reshare,
|
||||
search::Searcher, users::User, Connection,
|
||||
headers::Headers, inbox::inbox, instance::Instance, users::User, Error, PlumeRocket,
|
||||
};
|
||||
use rocket::{data::*, http::Status, response::status, Outcome::*, Request};
|
||||
use rocket_contrib::json::*;
|
||||
use serde::Deserialize;
|
||||
use std::io::Read;
|
||||
trinity-1686a
commented 5 years ago
Review
Deleting comment seems to return a Deleting comment seems to return a `Shared inbox error: Inbox(InvalidObject)`
trinity-1686a
commented 5 years ago
Review
this doesn't seems to work this doesn't seems to work
trinity-1686a
commented 5 years ago
Review
this doesn't seems to work this doesn't seems to work
trinity-1686a
commented 5 years ago
Review
Deleting post seems to return a Deleting post seems to return a `Shared inbox error: Inbox(InvalidObject)`
trinity-1686a
commented 5 years ago
Review
this doesn't seems to work this doesn't seems to work
|
||||
|
||||
pub trait Inbox {
|
||||
fn received(
|
||||
&self,
|
||||
conn: &Connection,
|
||||
searcher: &Searcher,
|
||||
act: serde_json::Value,
|
||||
) -> Result<(), Error> {
|
||||
let actor_id = Id::new(act["actor"].as_str().unwrap_or_else(|| {
|
||||
act["actor"]["id"]
|
||||
.as_str()
|
||||
.expect("Inbox::received: actor_id missing error")
|
||||
}));
|
||||
match act["type"].as_str() {
|
||||
Some(t) => match t {
|
||||
"Announce" => {
|
||||
Reshare::from_activity(conn, serde_json::from_value(act.clone())?, actor_id)
|
||||
.expect("Inbox::received: Announce error");;
|
||||
Ok(())
|
||||
}
|
||||
"Create" => {
|
||||
let act: Create = serde_json::from_value(act.clone())?;
|
||||
if Post::try_from_activity(&(conn, searcher), act.clone()).is_ok()
|
||||
|| Comment::try_from_activity(conn, act).is_ok()
|
||||
{
|
||||
Ok(())
|
||||
} else {
|
||||
Err(InboxError::InvalidType)?
|
||||
}
|
||||
}
|
||||
"Delete" => {
|
||||
let act: Delete = serde_json::from_value(act.clone())?;
|
||||
Post::delete_id(
|
||||
&act.delete_props
|
||||
.object_object::<Tombstone>()?
|
||||
.object_props
|
||||
.id_string()?,
|
||||
actor_id.as_ref(),
|
||||
&(conn, searcher),
|
||||
)
|
||||
.ok();
|
||||
Comment::delete_id(
|
||||
&act.delete_props
|
||||
.object_object::<Tombstone>()?
|
||||
.object_props
|
||||
.id_string()?,
|
||||
actor_id.as_ref(),
|
||||
conn,
|
||||
)
|
||||
.ok();
|
||||
Ok(())
|
||||
}
|
||||
"Follow" => {
|
||||
Follow::from_activity(conn, serde_json::from_value(act.clone())?, actor_id)
|
||||
.and_then(|f| f.notify(conn))
|
||||
.expect("Inbox::received: follow from activity error");;
|
||||
Ok(())
|
||||
}
|
||||
"Like" => {
|
||||
likes::Like::from_activity(
|
||||
conn,
|
||||
serde_json::from_value(act.clone())?,
|
||||
actor_id,
|
||||
)
|
||||
.expect("Inbox::received: like from activity error");;
|
||||
Ok(())
|
||||
}
|
||||
"Undo" => {
|
||||
let act: Undo = serde_json::from_value(act.clone())?;
|
||||
if let Some(t) = act.undo_props.object["type"].as_str() {
|
||||
match t {
|
||||
"Like" => {
|
||||
likes::Like::delete_id(
|
||||
&act.undo_props
|
||||
.object_object::<Like>()?
|
||||
.object_props
|
||||
.id_string()?,
|
||||
actor_id.as_ref(),
|
||||
conn,
|
||||
)
|
||||
.expect("Inbox::received: undo like fail");;
|
||||
Ok(())
|
||||
}
|
||||
"Announce" => {
|
||||
Reshare::delete_id(
|
||||
&act.undo_props
|
||||
.object_object::<Announce>()?
|
||||
.object_props
|
||||
.id_string()?,
|
||||
actor_id.as_ref(),
|
||||
conn,
|
||||
)
|
||||
.expect("Inbox::received: undo reshare fail");;
|
||||
Ok(())
|
||||
}
|
||||
"Follow" => {
|
||||
Follow::delete_id(
|
||||
&act.undo_props
|
||||
.object_object::<FollowAct>()?
|
||||
.object_props
|
||||
.id_string()?,
|
||||
actor_id.as_ref(),
|
||||
conn,
|
||||
)
|
||||
.expect("Inbox::received: undo follow error");;
|
||||
Ok(())
|
||||
}
|
||||
_ => Err(InboxError::CantUndo)?,
|
||||
}
|
||||
} else {
|
||||
let link =
|
||||
act.undo_props.object.as_str().expect(
|
||||
"Inbox::received: undo doesn't contain a type and isn't Link",
|
||||
);
|
||||
if let Ok(like) = likes::Like::find_by_ap_url(conn, link) {
|
||||
likes::Like::delete_id(&like.ap_url, actor_id.as_ref(), conn)
|
||||
.expect("Inbox::received: delete Like error");
|
||||
Ok(())
|
||||
} else if let Ok(reshare) = Reshare::find_by_ap_url(conn, link) {
|
||||
Reshare::delete_id(&reshare.ap_url, actor_id.as_ref(), conn)
|
||||
.expect("Inbox::received: delete Announce error");
|
||||
Ok(())
|
||||
} else if let Ok(follow) = Follow::find_by_ap_url(conn, link) {
|
||||
Follow::delete_id(&follow.ap_url, actor_id.as_ref(), conn)
|
||||
.expect("Inbox::received: delete Follow error");
|
||||
Ok(())
|
||||
} else {
|
||||
Err(InboxError::NoType)?
|
||||
}
|
||||
}
|
||||
}
|
||||
"Update" => {
|
||||
let act: Update = serde_json::from_value(act.clone())?;
|
||||
Post::handle_update(conn, &act.update_props.object_object()?, searcher)
|
||||
.expect("Inbox::received: post update error");
|
||||
pub fn handle_incoming(
|
||||
rockets: PlumeRocket,
|
||||
data: SignedJson<serde_json::Value>,
|
||||
headers: Headers,
|
||||
) -> Result<String, status::BadRequest<&'static str>> {
|
||||
let conn = &*rockets.conn;
|
||||
let act = data.1.into_inner();
|
||||
let sig = data.0;
|
||||
|
||||
let activity = act.clone();
|
||||
let actor_id = activity["actor"]
|
||||
.as_str()
|
||||
.or_else(|| activity["actor"]["id"].as_str())
|
||||
.ok_or(status::BadRequest(Some("Missing actor id for activity")))?;
|
||||
|
||||
let actor =
|
||||
User::from_id(&rockets, actor_id, None).expect("instance::shared_inbox: user error");
|
||||
if !verify_http_headers(&actor, &headers.0, &sig).is_secure() && !act.clone().verify(&actor) {
|
||||
// maybe we just know an old key?
|
||||
actor
|
||||
.refetch(conn)
|
||||
.and_then(|_| User::get(conn, actor.id))
|
||||
.and_then(|u| {
|
||||
if verify_http_headers(&u, &headers.0, &sig).is_secure() || act.clone().verify(&u) {
|
||||
Ok(())
|
||||
} else {
|
||||
Err(Error::Signature)
|
||||
}
|
||||
_ => Err(InboxError::InvalidType)?,
|
||||
},
|
||||
None => Err(InboxError::NoType)?,
|
||||
}
|
||||
})
|
||||
.map_err(|_| {
|
||||
println!(
|
||||
"Rejected invalid activity supposedly from {}, with headers {:?}",
|
||||
actor.username, headers.0
|
||||
);
|
||||
status::BadRequest(Some("Invalid signature"))
|
||||
})?;
|
||||
}
|
||||
}
|
||||
|
||||
impl Inbox for Instance {}
|
||||
impl Inbox for User {}
|
||||
if Instance::is_blocked(conn, actor_id)
|
||||
.map_err(|_| status::BadRequest(Some("Can't tell if instance is blocked")))?
|
||||
{
|
||||
return Ok(String::new());
|
||||
}
|
||||
|
||||
Ok(match inbox(&rockets, act) {
|
||||
Ok(_) => String::new(),
|
||||
Err(e) => {
|
||||
println!("Shared inbox error: {:?}", e);
|
||||
format!("Error: {:?}", e)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const JSON_LIMIT: u64 = 1 << 20;
|
||||
|
||||
|
as it is more of a lib kind, I don't think it is a good idea. Returning an Option and
.expect()
ing on it would be better if possibleas it is more of a lib kind, I don't think it is a good idea. Returning an Option and
.expect()
ing on it would be better if possibleis it calling itself recursively? a
{"id":{"id":{"id":{"id":"something"}}}
would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payloadis it calling itself recursively? a
{"id":{"id":{"id":{"id":"something"}}}
would be considered valid and having an id if so, and as it is cloning, with a big enough json, memory usage could grow quadratic to the size of the original payloadwhat does the
where
clause here mean? I've never seen+ Debug
@_@what does the
where
clause here mean? I've never seen+ Debug
@_@given that this
match
only has one match and else,other
, maybe useif let
here.given that this
match
only has one match and else,other
, maybe useif let
here.This mean that E must Implement
From<InboxError<E>>
andDebug
(Debug
allow ugly display viaprintln!("{:?}", yourStruct)
) for the functions in this impl block to be availableThis mean that E must Implement
From<InboxError<E>>
andDebug
(Debug
allow ugly display viaprintln!("{:?}", yourStruct)
) for the functions in this impl block to be availableis there such a thing as
if not let
? so we can move this whole block out by one indent, by returning early?is there such a thing as
if not let
? so we can move this whole block out by one indent, by returning early?I don't think so…
I don't think so…
There is match
There is match
I don't think it can actually panic? Also the
Otherwise we return its 'id' field, if it is a string
is a bit unclearI don't think it can actually panic? Also the
Otherwise we return its 'id' field, if it is a string
is a bit unclearYeah, I think I forgot to update the docs.
Yeah, I think I forgot to update the docs.