Coder Social home page Coder Social logo

Comments (1)

pmnxis avatar pmnxis commented on September 3, 2024
   Compiling billmock-app-rs v0.3.1 (/home/pmnxis/Develop/billmock-app-rs)
warning: [email protected]: This is not NDA serial device build.
warning: the feature `async_fn_in_trait` has been stable since 1.75.0-nightly and no longer requires an attribute to enable
  --> src/main.rs:10:12
   |
10 | #![feature(async_fn_in_trait)]
   |            ^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(stable_features)]` on by default

warning: method `test_mut_inh_then_ignore` is never used
   --> src/application/mutual_inhibit.rs:119:12
    |
99  | impl InputEvent {
    | --------------- method in this implementation
...
119 |     pub fn test_mut_inh_then_ignore(&self, mut_inh: &mut MutualInhibit) -> Self {
    |            ^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified
   --> src/components/eeprom.rs:213:5
    |
213 |     async fn lock_read(
    |     ^^^^^
    |
    = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future`
    = note: `#[warn(async_fn_in_trait)]` on by default
help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change
    |
213 ~     fn lock_read(
214 |         &self,
215 |         mutex: &Mutex<ThreadModeRawMutex, NovellaModuleControlBlock>,
216 ~     ) -> impl std::future::Future<Output = Self::InnerType> + Send;
    |

warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified
   --> src/components/eeprom.rs:218:5
    |
218 |     async fn lock_write(
    |     ^^^^^
    |
    = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future`
help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change
    |
218 ~     fn lock_write(
219 |         &self,
220 |         mutex: &Mutex<ThreadModeRawMutex, NovellaModuleControlBlock>,
221 |         src: Self::InnerType,
222 ~     ) -> impl std::future::Future<Output = ()> + Send;
    |

warning: use of `async fn` in public traits is discouraged as auto trait bounds cannot be specified
   --> src/components/eeprom.rs:224:5
    |
224 |     async fn lock_write_zero(&self, mutex: &Mutex<ThreadModeRawMutex, NovellaModuleControlB...
    |     ^^^^^
    |
    = note: you can suppress this lint if you plan to use the trait only in your own code, or do not care about auto traits like `Send` on the `Future`
help: you can alternatively desugar to a normal `fn` that returns `impl Future` and add any desired bounds such as `Send`, but these cannot be relaxed without a breaking API change
    |
224 -     async fn lock_write_zero(&self, mutex: &Mutex<ThreadModeRawMutex, NovellaModuleControlBlock>);
224 +     fn lock_write_zero(&self, mutex: &Mutex<ThreadModeRawMutex, NovellaModuleControlBlock>) -> impl std::future::Future<Output = ()> + Send;

remove async later.

from billmock-app-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.