]> Untitled Git - lemmy.git/commit
Introduce the "MaybeOptional" trait.
authorLyra <teromene@teromene.fr>
Tue, 10 Dec 2019 23:10:39 +0000 (00:10 +0100)
committerLyra <teromene@teromene.fr>
Tue, 10 Dec 2019 23:10:39 +0000 (00:10 +0100)
commitc19ace7e6a0350a1f257018166769957568fabe2
tree1c435a65903be3be9962aa444cfbcaaab424cde2
parentb7d05c18a1eb74539d05da4374ee29aecb10570f
Introduce the "MaybeOptional" trait.
This trait is a generic type that allows us to get an Option from any type and from another option. It can be used to remove the ugly "do_something", "do_something_optional" that we previously had.
server/src/api/community.rs
server/src/api/post.rs
server/src/api/site.rs
server/src/api/user.rs
server/src/db/comment_view.rs
server/src/db/community_view.rs
server/src/db/mod.rs
server/src/db/post_view.rs
server/src/db/user_mention_view.rs
server/src/db/user_view.rs