Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
I
ink
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
parity
ink
Commits
1c207d7e
Unverified
Commit
1c207d7e
authored
Nov 07, 2019
by
Robin Freyler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[lang2/macro] make codegen more precise when using traits
parent
d73f6c3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
lang2/macro/src/codegen/storage.rs
lang2/macro/src/codegen/storage.rs
+7
-5
No files found.
lang2/macro/src/codegen/storage.rs
View file @
1c207d7e
...
...
@@ -175,7 +175,7 @@ impl Storage<'_> {
impl
ink_core
::
storage
::
Flush
for
Storage
{
fn
flush
(
&
mut
self
)
{
#
(
self
.#
field_idents
.flush
(
);
ink_core
::
storage
::
Flush
::
flush
(
&
mut
self
.#
field_idents
);
)
*
}
}
...
...
@@ -264,11 +264,13 @@ impl Storage<'_> {
impl
ink_core
::
storage
::
Flush
for
StorageAndEnv
{
fn
flush
(
&
mut
self
)
{
self
.__storage
.flush
(
);
self
.__env
.flush
(
);
ink_core
::
storage
::
Flush
::
flush
(
&
mut
self
.__storage
);
ink_core
::
storage
::
Flush
::
flush
(
&
mut
self
.__env
);
}
}
impl
ink_core
::
storage
::
alloc
::
Initialize
for
StorageAndEnv
{
type
Args
=
();
...
...
@@ -277,8 +279,8 @@ impl Storage<'_> {
}
fn
initialize
(
&
mut
self
,
_
args
:
Self
::
Args
)
{
self
.__storage
.try_default_initialize
(
);
self
.__env
.try_default_initialize
(
);
ink_core
::
storage
::
alloc
::
Initialize
::
try_default_initialize
(
&
mut
self
.__storage
);
ink_core
::
storage
::
alloc
::
Initialize
::
try_default_initialize
(
&
mut
self
.__env
);
}
}
...
...
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