Commit d5978a68 authored by brizental's avatar brizental Committed by Pier Angelo Vendrame
Browse files

fixup! TB 44806: Implement the tor integration in Rust.

Bug 45224: Enable Rust linters
parent d0f160ff
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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());
+5 −1
Original line number Diff line number Diff line
@@ -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::{