Skip to content

Commit

Permalink
Change lint back
Browse files Browse the repository at this point in the history
  • Loading branch information
austinabell committed Mar 6, 2021
1 parent 1eb4f88 commit 50c2aad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/dns/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ use ink_lang as ink;
mod dns {
#[cfg(not(feature = "ink-as-dependency"))]
use ink_storage::{
collections::hashmap::Entry, collections::HashMap as StorageHashMap, lazy::Lazy,
collections::hashmap::Entry,
collections::HashMap as StorageHashMap,
lazy::Lazy,
};

/// Emitted whenever a new name is being registered.
Expand Down Expand Up @@ -123,7 +125,7 @@ mod dns {
let caller = self.env().caller();
let owner = self.get_owner_or_default(name);
if caller != owner {
return Err(Error::CallerIsNotOwner);
return Err(Error::CallerIsNotOwner)
}
let old_address = self.name_to_address.insert(name, new_address);
self.env().emit_event(SetAddress {
Expand All @@ -141,7 +143,7 @@ mod dns {
let caller = self.env().caller();
let owner = self.get_owner_or_default(name);
if caller != owner {
return Err(Error::CallerIsNotOwner);
return Err(Error::CallerIsNotOwner)
}
let old_owner = self.name_to_owner.insert(name, to);
self.env().emit_event(Transfer {
Expand Down

0 comments on commit 50c2aad

Please sign in to comment.