mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
nix-rust: remove unused tar file code
This commit is contained in:
parent
eba82b7c88
commit
b232eea40a
4 changed files with 3 additions and 126 deletions
|
@ -1,6 +1,5 @@
|
|||
mod error;
|
||||
mod foreign;
|
||||
mod tarfile;
|
||||
|
||||
pub use error::Error;
|
||||
|
||||
|
@ -23,10 +22,3 @@ impl<T> CBox<T> {
|
|||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn unpack_tarfile(
|
||||
source: foreign::Source,
|
||||
dest_dir: &str,
|
||||
) -> CBox<Result<(), error::CppException>> {
|
||||
CBox::new(tarfile::unpack_tarfile(source, dest_dir).map_err(|err| err.into()))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue