Ondřej Hruška
568b1ff07a
convert all to sync, remove now broken doc comments, some renames
3 years ago
Ondřej Hruška
c967e59ffb
all asyncified except for streaming
3 years ago
Paul Woolcock
d66c63dd28
Remove `HttpSend` and `HttpSender`
...
this was maybe a good idea, but it isn't really needed
4 years ago
Paul Woolcock
982a8fc776
making clippy happy
4 years ago
Paul Woolcock
a69d0ea928
Cargo-fmt pass
4 years ago
Paul Woolcock
16bc060407
Update to the 2018 edition
...
Only 2 years later :eyeroll:
4 years ago
Paul Woolcock
5e69ad4b33
Fix panic if there are < page number of results
6 years ago
Paul Woolcock
5b24922d9e
Add some more lints, and fix the compile errors they generate
6 years ago
Paul Woolcock
3330a26760
rustfmt pass
6 years ago
Paul Woolcock
49a2237803
Introduce HttpSend trait for converting `Request` -> `Response`
...
Parameterize everything that involves sending HTTP requests with the `H:
HttpSend` bound. This will allow us to swap out `HttpSend`
implementations when necessary, in order to better test our code
6 years ago
Paul Woolcock
8636e690c3
rustfmt pass
6 years ago
Paul Woolcock
5eca9748a3
Reduce the visibility of ItemsIter and add docs to items_iter
6 years ago
Paul Woolcock
e5175f09fe
make apps::prelude and use the preludes in the tests
6 years ago
Paul Woolcock
cc083e335e
Change `Mastodon::from_data` to just `Mastodon::from`
6 years ago
Paul Woolcock
a9b6b52890
Change mammut references to elefren
6 years ago
Paul Woolcock
22b4b04738
Adds a `MastodonClient` trait
...
This is useful for user code, which can use the trait to add a layer of
indirection to their code, allowing them to swap out implementations for
testing
6 years ago
Paul Woolcock
d14d50070e
fix test
6 years ago
Paul Woolcock
664cb2797f
fix the test so it actually tests something
6 years ago
Paul Woolcock
6501470312
Change `PageIter` to `ItemsIter`
6 years ago
Paul Woolcock
68f8766aff
Return `None` if there are no items
6 years ago
Paul Woolcock
b4cbcfa1a7
into_iter -> items_iter
6 years ago
Paul Woolcock
6d67e403bc
Don't expose pageiter module, and add some docs to PageIter
6 years ago
Paul Woolcock
0e8eb4e568
Add `PageIter<T>` to abstract over iterating over pages
6 years ago