Skip to content

Commit

Permalink
fix: CString import
Browse files Browse the repository at this point in the history
in my defense, im sleepy
  • Loading branch information
decahedron1 committed Aug 31, 2024
1 parent 3fde6e7 commit 18feafe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/session/builder/impl_options.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#[cfg(any(feature = "operator-libraries", not(windows)))]
use std::ffi::CString;
use std::{rc::Rc, sync::Arc};

use super::SessionBuilder;
Expand Down Expand Up @@ -117,8 +119,6 @@ impl SessionBuilder {
#[cfg(feature = "operator-libraries")]
#[cfg_attr(docsrs, doc(cfg(feature = "operator-libraries")))]
pub fn with_operator_library(mut self, lib_path: impl AsRef<str>) -> Result<Self> {
use std::ffi::CString;

use crate::error::status_to_result;

let path_cstr = CString::new(lib_path.as_ref())?;
Expand Down

0 comments on commit 18feafe

Please sign in to comment.