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

Đang mở
#651 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #654 của @anishfyi — đã đóng, không merge
  • #655 của @anishfyi — đã đóng, không merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Rust
Star
1.1k
Fork
57
Merge trung bình
17 giờ 39 phút
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cot-rs/cot

Tất cả issue của cot-rs/cot

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.