Skip to content

Commit 3ceac86

Browse files
committed
Removing unused variable
1 parent 5b2009c commit 3ceac86

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tensorflow-sys-runtime/src/runtime.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ macro_rules! link {
1616
// Wrap the loaded functions.
1717
pub(crate) struct SharedLibrary {
1818
library: libloading::Library,
19-
path: PathBuf,
2019
pub functions: Functions,
2120
}
2221
impl SharedLibrary {
23-
fn new(library: libloading::Library, path: PathBuf) -> Self {
22+
fn new(library: libloading::Library) -> Self {
2423
Self {
2524
library,
26-
path,
2725
functions: Functions::default(),
2826
}
2927
}
@@ -95,7 +93,7 @@ macro_rules! link {
9593
)
9694
});
9795

98-
let mut library = SharedLibrary::new(library?, path);
96+
let mut library = SharedLibrary::new(library?);
9997
$(load::$name(&mut library);)+
10098
Ok(library)
10199
}

0 commit comments

Comments
 (0)