Loading toolkit/components/tor-integration/tor_provider/src/ctor/reply_parser/factory.rs +3 −1 Original line number Diff line number Diff line Loading @@ -424,7 +424,9 @@ mod tests { assert!(!factory.has_pending_data()); assert_eq!( factory.build(&Bytes::from_static(b"250 OK\r\nA\r\n")).unwrap_err(), factory .build(&Bytes::from_static(b"250 OK\r\nA\r\n")) .unwrap_err(), ReplyError::LineTooShort, ); assert!(!factory.has_pending_data()); Loading toolkit/components/tor-integration/tor_service/src/control_socket.rs +5 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,11 @@ use nserror::{ NS_ERROR_FAILURE, NS_ERROR_INVALID_ARG, NS_ERROR_NOT_AVAILABLE, NS_ERROR_UNEXPECTED, NS_OK, }; use nsstring::nsACString; use std::{cell::{Cell, RefCell}, ffi::c_char, ptr::null}; use std::{ cell::{Cell, RefCell}, ffi::c_char, ptr::null, }; use thin_vec::ThinVec; use tor_provider::ctor::{ControlSocket, ControlSocketError}; use xpcom::interfaces::{ Loading Loading
toolkit/components/tor-integration/tor_provider/src/ctor/reply_parser/factory.rs +3 −1 Original line number Diff line number Diff line Loading @@ -424,7 +424,9 @@ mod tests { assert!(!factory.has_pending_data()); assert_eq!( factory.build(&Bytes::from_static(b"250 OK\r\nA\r\n")).unwrap_err(), factory .build(&Bytes::from_static(b"250 OK\r\nA\r\n")) .unwrap_err(), ReplyError::LineTooShort, ); assert!(!factory.has_pending_data()); Loading
toolkit/components/tor-integration/tor_service/src/control_socket.rs +5 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,11 @@ use nserror::{ NS_ERROR_FAILURE, NS_ERROR_INVALID_ARG, NS_ERROR_NOT_AVAILABLE, NS_ERROR_UNEXPECTED, NS_OK, }; use nsstring::nsACString; use std::{cell::{Cell, RefCell}, ffi::c_char, ptr::null}; use std::{ cell::{Cell, RefCell}, ffi::c_char, ptr::null, }; use thin_vec::ThinVec; use tor_provider::ctor::{ControlSocket, ControlSocketError}; use xpcom::interfaces::{ Loading