Skip to content

Commit

Permalink
Update src/builder.rs
Browse files Browse the repository at this point in the history
Co-authored-by: João Oliveira <[email protected]>
  • Loading branch information
AgeManning and jxs authored Oct 28, 2024
1 parent 11429e0 commit f790c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl<K: EnrKey> Default for Builder<K> {
/// Constructs a minimal [`Builder`] for the v4 identity scheme.
fn default() -> Self {
Self {
id: String::from_utf8(ENR_VERSION.into()).expect("A valid constant"),
id: String::from_utf8_unchecked(ENR_VERSION.into()),
seq: 1,
content: BTreeMap::new(),
phantom: PhantomData,
Expand Down

0 comments on commit f790c02

Please sign in to comment.