File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1- name : rustfmt
1+ name : cargo
22
33on :
44 push :
1717 run : cargo +stable fmt -- --check
1818 - name : Check linting
1919 run : cargo +stable clippy -- -Dwarnings
20+ - name : Check unit tests
21+ run : cargo +stable test
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ impl<AF: AddressFamily> FSM<AF> {
132132 }
133133
134134 /// <https://www.rfc-editor.org/rfc/rfc6763#section-9>
135- fn handle_service_type_enumeration < ' a > (
135+ fn handle_service_type_enumeration (
136136 question : & dns_parser:: Question < ' _ > ,
137137 services : & ServicesInner ,
138138 mut builder : AnswerBuilder ,
@@ -152,6 +152,7 @@ impl<AF: AddressFamily> FSM<AF> {
152152 builder
153153 }
154154
155+ #[ allow( clippy:: too_many_lines) ]
155156 fn handle_question (
156157 & self ,
157158 question : & dns_parser:: Question < ' _ > ,
@@ -220,7 +221,7 @@ impl<AF: AddressFamily> FSM<AF> {
220221 Self :: handle_service_type_enumeration ( question, & services, builder) ;
221222 for svc in services. find_by_type ( & question. qname ) {
222223 builder =
223- builder. add_answer ( & svc. typ , QueryClass :: IN , DEFAULT_TTL , & svc. ptr_rr ( ) )
224+ builder. add_answer ( & svc. typ , QueryClass :: IN , DEFAULT_TTL , & svc. ptr_rr ( ) ) ;
224225 }
225226 let mut builder = builder. move_to :: < dns_parser:: Additional > ( ) ;
226227 for svc in services. find_by_type ( & question. qname ) {
Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ impl Responder {
309309 ///
310310 /// # use std::io;
311311 /// # fn main() -> io::Result<()> {
312- /// let responder = Responder::new()? ;
312+ /// let responder = Responder::new();
313313 /// // bind service
314314 /// let _http_svc = responder.register_with_ttl(
315315 /// "_http._tcp".into(),
You can’t perform that action at this time.
0 commit comments