GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

warning: unused output of future returned by `hey` that must be used --> example.rs:7:5 | 7 | hey().await; | ^^^^^^^^^^^

Download link

https://media.hachyderm.io/media_attachments/files/109/756/968/444/029/340/original/dd123e2a62f9792d.png

Notices where this attachment appears

  1. Embed this notice
    Mara (mara@hachyderm.io)'s status on Tuesday, 14-Mar-2023 22:52:21 JST Mara Mara
    in reply to

    A must_use attribute on async functions now does what you expect.

    #[must_use]
    async fn hey() -> Thing { … }

    Now, #[must_use] applies to `Thing`, instead of to the `impl Future<Output=Thing>` (which wasn't very useful).

    2/6

    In conversation Tuesday, 14-Mar-2023 22:52:21 JST from hachyderm.io permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.