Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: validate url as a Lemmy instance before making API requests (#30)
* feat: make Api creation fallible * feat: check if instance url is a lemmy instance during initalization * feat: make Api creation async * feat: better error message for non-lemmy instance url * style: use unwrap, we're not dealing with user input here * style: format blocks in main.rs
- Loading branch information
1 parent
1965893
commit b10fed8
Showing
2 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters