Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
I
ink
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
parity
ink
Commits
3623341e
Commit
3623341e
authored
Feb 15, 2019
by
Hero Bird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[pdsl_model] Make use of $crate inside state! and messages!
parent
a29c24a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
model/src/msg.rs
model/src/msg.rs
+1
-1
model/src/state.rs
model/src/state.rs
+1
-1
No files found.
model/src/msg.rs
View file @
3623341e
...
...
@@ -29,7 +29,7 @@ macro_rules! messages {
#[derive(Copy,
Clone)]
struct
$msg_name
;
impl
pdsl_model
::
Message
for
$msg_name
{
impl
$crate
::
Message
for
$msg_name
{
type
Input
=
(
$
(
$param_ty
),
*
);
type
Output
=
$ret_ty
;
...
...
model/src/state.rs
View file @
3623341e
...
...
@@ -64,7 +64,7 @@ macro_rules! state {
}
}
impl
pdsl_model
::
ContractState
for
$state_name
{
impl
$crate
::
ContractState
for
$state_name
{
const
NAME
:
&
'static
[
u8
]
=
stringify!
(
$state_name
)
.as_bytes
();
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment