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

Aperta
#651 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #654 di @anishfyi — chiusa senza merge
  • #655 di @anishfyi — chiusa senza merge

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Rust
Stelle
1.1k
Fork
57
Merge medio
17h 39m
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cot-rs/cot

Tutte le issue di cot-rs/cot

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.