From 9dadf92c16da5cd21def79ae39ca98803c9208ec Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 5 May 2025 13:17:30 -0400 Subject: [Rust] Rename `AsCStr` to `IntoCStr` --- rust/src/download_provider.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'rust/src/download_provider.rs') diff --git a/rust/src/download_provider.rs b/rust/src/download_provider.rs index 7d28058f..e74274f4 100644 --- a/rust/src/download_provider.rs +++ b/rust/src/download_provider.rs @@ -1,6 +1,6 @@ use crate::rc::{Array, CoreArrayProvider, CoreArrayProviderInner, Guard, Ref, RefCountable}; use crate::settings::Settings; -use crate::string::{AsCStr, BnString}; +use crate::string::{BnString, IntoCStr}; use binaryninjacore_sys::*; use std::collections::HashMap; use std::ffi::{c_void, CStr}; @@ -13,7 +13,7 @@ pub struct DownloadProvider { } impl DownloadProvider { - pub fn get(name: S) -> Option { + pub fn get(name: S) -> Option { let name = name.to_cstr(); let result = unsafe { BNGetDownloadProviderByName(name.as_ptr()) }; if result.is_null() { @@ -131,7 +131,7 @@ impl DownloadInstance { } } - pub fn perform_request( + pub fn perform_request( &mut self, url: S, callbacks: DownloadInstanceOutputCallbacks, @@ -202,11 +202,11 @@ impl DownloadInstance { } pub fn perform_custom_request< - M: AsCStr, - U: AsCStr, - HK: AsCStr, - HV: AsCStr, - I: IntoIterator, + M: IntoCStr, + U: IntoCStr, + HK: IntoCStr, + HV: IntoCStr, + I: Iterator, >( &mut self, method: M, -- cgit v1.3.1