Skip to content

Commit

Permalink
prohibit error creation manually
Browse files Browse the repository at this point in the history
  • Loading branch information
austinabell committed Jul 9, 2021
1 parent 3d050be commit 33e7684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion near-sdk/src/types/account_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ impl std::str::FromStr for AccountId {
}

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ParseAccountIdError;
#[non_exhaustive]
pub struct ParseAccountIdError {}

impl fmt::Display for ParseAccountIdError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
Expand Down

0 comments on commit 33e7684

Please sign in to comment.