Skip to content

Commit

Permalink
Merge pull request #108 from elfo-rs/fix/lookup-vtable-visibility
Browse files Browse the repository at this point in the history
fix(core/message): make lookup_vtable available without network feature
  • Loading branch information
loyd authored Aug 25, 2023
2 parents 5fd4cdc + fedf82d commit c7fcc6e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion elfo-core/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ static MESSAGES: Lazy<FxHashMap<(&'static str, &'static str), &'static MessageVT
.collect()
});

#[cfg(feature = "network")]
fn lookup_vtable(protocol: &str, name: &str) -> Option<&'static MessageVTable> {
// Extend lifetimes to static in order to get `(&'static str, &'static str)`.
// SAFETY: this pair doesn't overlive the function.
Expand Down

0 comments on commit c7fcc6e

Please sign in to comment.