fix: lint issues in `fetch` example (#989)

* build: add common tasks

* test: resolve check-style issues
This commit is contained in:
agilarity 2023-05-05 11:24:28 -04:00 committed by GitHub
parent b4996769c1
commit 3ba4f62cef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
extend = [{ path = "../cargo-make/common.toml" }]
[tasks.build]
command = "cargo"
args = ["+nightly", "build-all-features"]

View File

@ -14,7 +14,7 @@ pub enum FetchError {
#[error("Error loading data from serving.")]
Request,
#[error("Error deserializaing cat data from request.")]
Json
Json,
}
async fn fetch_cats(count: u32) -> Result<Vec<String>, FetchError> {