More spans
This commit is contained in:
parent
3f1ad390be
commit
18624d5bd8
2 changed files with 4 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ where
|
|||
ByteBuf: Eq + std::hash::Hash + std::borrow::Borrow<[u8]>,
|
||||
{
|
||||
fn get_msgid(&self, msg_type: &'a [u8]) -> Option<u8> {
|
||||
self.m.get(msg_type).map(|v| *v)
|
||||
self.m.get(msg_type).copied()
|
||||
}
|
||||
|
||||
pub fn ut_metadata(&self) -> Option<u8> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue