Use `core::future::ready` instead of `#[expect(clippy::unused_async_trait_impl)]`

Open
#651 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

  • #654 by @anishfyi — closed without merging
  • #655 by @anishfyi — closed without merging

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
backend

Research direction

Search the repository for #[expect(clippy::unused_async_trait_impl)] and identify occurrences in public API code, excluding tests. Read the surrounding trait implementations and the linked Clippy lint guidance first. Done means applicable public API occurrences use core::future::ready rather than suppressing the lint; check existing tests and lint results, noting that two linked pull requests have already been closed.

Written by the indexing model from the issue text.

Description

enhancement good first issue

At least wherever the code is a part of a public API (i.e. not tests), we should consider using core::future::ready instead of bypassing the clippy lint for a tiny overhead reduction.

See: https://rust-lang.github.io/rust-clippy/master/?search=unused_async_trait_impl#unused_async_trait_impl

Dominant language
Rust
Stars
1.1k
Forks
57
Avg merge
17h 39m
Merged PRs (30d)
12

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cot-rs/cot

All issues in cot-rs/cot

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.