You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the butane/ tests fail if async feature isnt enabled with
$ cd butane
$ cargo test
...
error[E0046]: not all trait items implemented, missing: `save_many_to_many_async`
--> butane/tests/basic.rs:104:1
|
104 | #[model]
| ^^^^^^^^ missing `save_many_to_many_async` in implementation
|
= note: this error originates in the attribute macro `model` (in Nightly builds, run with -Z macro-backtrace for more info)
= help: implement the missing item: `async fn save_many_to_many_async<impl ConnectionMethodsAsync>(&mut self, _: &impl ConnectionMethodsAsync) -> Result<(), butane::Error> where impl ConnectionMethodsAsync: ConnectionMethodsAsync { todo!() }`
error[E0599]: no method named `save` found for struct `Post` in the current scope
--> butane/tests/common/blog.rs:190:10
|
30 | #[model]
| -------- method `save` not found for this struct
...
190 | post.save(conn).await.unwrap();
| ^^^^ method not found in `Post`
|
= help: items from traits can only be used if the trait is in scope
help: the following traits which provide `save` are implemented but not in scope; perhaps you want to import one of them
|
3 + use butane::DataObjectOpsSync;
|
3 + use butane::ManyOpsSync;
|
3 + use butane_core::DataObjectOpsAsync;
|
3 + use butane_core::many::ManyOpsAsync;
|
The three doctest fails with
error[E0046]: not all trait items implemented, missing: `save_many_to_many_async`
--> butane/src/lib.rs:144:1
|
12 | #[model]
| ^^^^^^^^ missing `save_many_to_many_async` in implementation
|
= note: this error originates in the attribute macro `model` (in Nightly builds, run with -Z macro-backtrace for more info)
= help: implement the missing item: `async fn save_many_to_many_async<impl ConnectionMethodsAsync>(&mut self, _: &impl ConnectionMethodsAsync) -> Result<(), butane::Error> where impl ConnectionMethodsAsync: ConnectionMethodsAsync { todo!() }`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0046`.
Couldn't compile the test.
failures:
butane/src/lib.rs - find (line 135)
The text was updated successfully, but these errors were encountered:
Most of the
butane/
tests fail ifasync
feature isnt enabled withThe three doctest fails with
The text was updated successfully, but these errors were encountered: