Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dtolnay/async-trait
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1.74
Choose a base ref
...
head repository: dtolnay/async-trait
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.1.75
Choose a head ref
  • 4 commits
  • 5 files changed
  • 1 contributor

Commits on Oct 31, 2023

  1. Copy the full SHA
    5f04108 View commit details

Commits on Nov 20, 2023

  1. Copy the full SHA
    b4a3886 View commit details

Commits on Dec 20, 2023

  1. Add a funding file

    dtolnay committed Dec 20, 2023
    Copy the full SHA
    0d469fc View commit details
  2. Release 0.1.75

    dtolnay committed Dec 20, 2023
    Copy the full SHA
    034d8db View commit details
Showing with 14 additions and 3 deletions.
  1. +1 −0 .github/FUNDING.yml
  2. +1 −1 Cargo.toml
  3. +1 −1 src/lib.rs
  4. +9 −1 tests/ui/must-use.stderr
  5. +2 −0 tests/ui/no-attribute-macro.stderr
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: dtolnay
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async-trait"
version = "0.1.74"
version = "0.1.75"
authors = ["David Tolnay <dtolnay@gmail.com>"]
categories = ["asynchronous", "no-std"]
description = "Type erasure for async trait methods"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -304,7 +304,7 @@
//! let object = &value as &dyn ObjectSafe;
//! ```
#![doc(html_root_url = "https://docs.rs/async-trait/0.1.74")]
#![doc(html_root_url = "https://docs.rs/async-trait/0.1.75")]
#![allow(
clippy::default_trait_access,
clippy::doc_markdown,
10 changes: 9 additions & 1 deletion tests/ui/must-use.stderr
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
error: unused return value of `Interface::f` that must be used
error: unused pinned boxed `Future` trait object that must be used
--> tests/ui/must-use.rs:18:5
|
18 | Thing.f();
| ^^^^^^^^^
|
= note: futures do nothing unless you `.await` or poll them
note: the lint level is defined here
--> tests/ui/must-use.rs:1:9
|
1 | #![deny(unused_must_use)]
| ^^^^^^^^^^^^^^^

error: unused return value of `Interface::f` that must be used
--> tests/ui/must-use.rs:18:5
|
18 | Thing.f();
| ^^^^^^^^^
|
help: use `let _ = ...` to ignore the resulting value
|
18 | let _ = Thing.f();
2 changes: 2 additions & 0 deletions tests/ui/no-attribute-macro.stderr
Original file line number Diff line number Diff line change
@@ -12,3 +12,5 @@ note: for a trait to be "object safe" it needs to allow building a vtable to all
2 | async fn method(&self);
| ^^^^^^ ...because method `method` is `async`
= help: consider moving `method` to another trait
= help: only type `Struct` is seen to implement the trait in this crate, consider using it directly instead
= note: `Trait` can be implemented in other crates; if you want to support your users passing their own types here, you can't refer to a specific type