Skip to content

Commit

Permalink
fix tests after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
vobradovich committed May 16, 2024
1 parent 8e2a897 commit 4ff7402
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
2 changes: 0 additions & 2 deletions macros/tests/ui/gservice_fails_multiple_not_allowed.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use parity_scale_codec::{Decode, Encode};
use sails_macros::gservice;
use scale_info::TypeInfo;

struct MyService;

Expand Down
4 changes: 2 additions & 2 deletions macros/tests/ui/gservice_fails_multiple_not_allowed.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: multiple `gservice` attributes are not allowed
--> tests/ui/gservice_fails_multiple_not_allowed.rs:15:1
--> tests/ui/gservice_fails_multiple_not_allowed.rs:13:1
|
15 | impl MyService {
13 | impl MyService {
| ^^^^
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use parity_scale_codec::{Decode, Encode};
use sails_macros::gservice;
use scale_info::TypeInfo;

struct MyService;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
error: multiple `gservice` attributes are not allowed
--> tests/ui/gservice_fails_multiple_not_allowed_on_one_impl.rs:9:1
--> tests/ui/gservice_fails_multiple_not_allowed_on_one_impl.rs:7:1
|
9 | impl MyService {
7 | impl MyService {
| ^^^^

error[E0599]: no method named `this` found for struct `MyService` in the current scope
--> tests/ui/gservice_fails_multiple_not_allowed_on_one_impl.rs:10:12
|
5 | struct MyService;
| ---------------- method `this` not found for this struct
--> tests/ui/gservice_fails_multiple_not_allowed_on_one_impl.rs:8:12
|
3 | struct MyService;
| ---------------- method `this` not found for this struct
...
10 | pub fn this(&self, p1: bool) -> bool {
| ^^^^ method not found in `MyService`
8 | pub fn this(&self, p1: bool) -> bool {
| ^^^^ method not found in `MyService`

0 comments on commit 4ff7402

Please sign in to comment.