From 6fc803c5b5cb077cf1713d5d65901a11e2fb33ba Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 26 Jul 2024 10:23:23 -0400 Subject: [PATCH] Use from_int to generate a custom class --- rs-matter/src/mdns/proto.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rs-matter/src/mdns/proto.rs b/rs-matter/src/mdns/proto.rs index 7ddcbe7b..bd2ed06b 100644 --- a/rs-matter/src/mdns/proto.rs +++ b/rs-matter/src/mdns/proto.rs @@ -23,7 +23,7 @@ use super::Service; /// See https://datatracker.ietf.org/doc/html/rfc6762#section-10.2 for details. fn dns_class_with_flush(dns_class: Class) -> Class { const RESOURCE_RECORD_CACHE_FLUSH_BIT: u16 = 0x8000; - Class::Int(u16::from(dns_class) | RESOURCE_RECORD_CACHE_FLUSH_BIT) + Class::from_int(u16::from(dns_class) | RESOURCE_RECORD_CACHE_FLUSH_BIT) } impl From for Error {