Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
ink
Commits
078fb09f
Commit
078fb09f
authored
Apr 16, 2020
by
Andrew Jones
Browse files
Remove EmitEvent trait import
parent
a711303c
Changes
1
Hide whitespace changes
Inline
Side-by-side
lang/macro/src/codegen/storage.rs
View file @
078fb09f
...
...
@@ -54,13 +54,6 @@ impl GenerateCode for Storage<'_> {
let
message_impls
=
self
.generate_message_impls
();
let
storage_struct
=
self
.generate_storage_struct
();
let
use_emit_event
=
if
!
self
.contract.events
.is_empty
()
{
// Required to allow for `self.env().emit_event(..)` in messages and constructors.
quote!
{
use
__ink_private
::
EmitEvent
as
_
;
}
}
else
{
quote!
{}
};
quote_spanned!
(
storage_span
=>
#[doc(hidden)]
#
conflic_depedency_cfg
...
...
@@ -81,7 +74,6 @@ impl GenerateCode for Storage<'_> {
#[allow(unused_imports)]
use
ink_lang
::
Env
as
_
;
#
use_emit_event
#
message_impls
};
)
...
...
Andrew Jones
@ascjones
mentioned in commit
13382ea8
·
Apr 17, 2020
mentioned in commit
13382ea8
mentioned in commit 13382ea8b7da62499e35b96bc496def0f8d3fe23
Toggle commit list
Andrew Jones
@ascjones
mentioned in commit
2ba03515
·
Apr 17, 2020
mentioned in commit
2ba03515
mentioned in commit 2ba03515593c73dce5c68fbc8f8402c549f86033
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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