From fce26815b400b5d3c0b67a46085ba8c9a61c1457 Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Mon, 27 May 2024 17:53:57 -0300 Subject: update `Session::load_with_option` to the new API --- rust/src/headless.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'rust/src/headless.rs') diff --git a/rust/src/headless.rs b/rust/src/headless.rs index 15754aba..d4d8892a 100644 --- a/rust/src/headless.rs +++ b/rust/src/headless.rs @@ -14,9 +14,8 @@ use crate::{ binaryview, - metadata::Metadata, - rc::{self, Ref}, - string::BnStrCompatible, + rc, + string::{BnStrCompatible, IntoJson}, }; use std::env; @@ -146,11 +145,11 @@ impl Session { /// let bv = headless_session.load_with_options("/bin/cat", true, Some(settings)) /// .expect("Couldn't open `/bin/cat`"); /// ``` - pub fn load_with_options( + pub fn load_with_options( &self, filename: &str, update_analysis_and_wait: bool, - options: Option>, + options: Option, ) -> Option> { crate::load_with_options(filename, update_analysis_and_wait, options) } -- cgit v1.3.1