File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pub trait CustomDownloadInstance: Sized {
2222 destroyInstance : Some ( cb_destroy_instance :: < Self > ) ,
2323 performRequest : Some ( cb_perform_request :: < Self > ) ,
2424 performCustomRequest : Some ( cb_perform_custom_request :: < Self > ) ,
25- freeResponse : Some ( cb_free_response :: < Self > ) ,
25+ freeResponse : Some ( cb_free_response) ,
2626 } ;
2727 let instance_ptr = unsafe { BNInitDownloadInstance ( provider. handle , & mut callbacks) } ;
2828 // TODO: If possible pass a sensible error back...
@@ -168,7 +168,7 @@ impl std::io::Write for DownloadInstanceWriter {
168168 self . progress += buf. len ( ) as u64 ;
169169 if self
170170 . instance
171- . progress_callback ( self . progress , self . total_length . unwrap_or ( u64:: max_value ( ) ) )
171+ . progress_callback ( self . progress , self . total_length . unwrap_or ( u64:: MAX ) )
172172 {
173173 Ok ( length as usize )
174174 } else {
@@ -602,7 +602,7 @@ pub unsafe extern "C" fn cb_perform_custom_request<C: CustomDownloadInstance>(
602602 }
603603}
604604
605- unsafe extern "C" fn cb_free_response < C : CustomDownloadInstance > (
605+ unsafe extern "C" fn cb_free_response (
606606 _ctxt : * mut c_void ,
607607 response : * mut BNDownloadInstanceResponse ,
608608) {
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ impl Ref<Logger> {
9696 /// you should use [`Ref<Logger>::init`] to initialize the `log` compatible logger.
9797 pub fn send_log ( & self , level : Level , msg : & str ) {
9898 use binaryninjacore_sys:: BNLog ;
99- if let Ok ( msg) = CString :: new ( format ! ( "{}" , msg) ) {
99+ if let Ok ( msg) = CString :: new ( msg) {
100100 let logger_name = self . name ( ) . to_cstr ( ) ;
101101 unsafe {
102102 BNLog (
You can’t perform that action at this time.
0 commit comments