diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-12-19 14:47:18 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-12-19 14:47:18 +0100 |
commit | ee235e764c6a2af1ff3ae24ce8ad9ae0e1928f39 (patch) | |
tree | 36929ecdd82a22d3eba38c31d4be11208f35e94a /src/libutil/rust-ffi.cc | |
parent | 9f7b4d068cc106e5d902dc6f52bf46d4a057fd00 (diff) | |
parent | f765e441237cb6679c33cb44372a5b30168c42c8 (diff) |
Merge branch 'libarchive' of https://github.com/yorickvP/nix
Diffstat (limited to 'src/libutil/rust-ffi.cc')
-rw-r--r-- | src/libutil/rust-ffi.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/libutil/rust-ffi.cc b/src/libutil/rust-ffi.cc index 8b8b7b75d..6f36b3192 100644 --- a/src/libutil/rust-ffi.cc +++ b/src/libutil/rust-ffi.cc @@ -19,15 +19,4 @@ std::ostream & operator << (std::ostream & str, const String & s) return str; } -size_t Source::sourceWrapper(void * _this, rust::Slice<uint8_t> data) -{ - try { - // FIXME: how to propagate exceptions? - auto n = ((nix::Source *) _this)->read((unsigned char *) data.ptr, data.size); - return n; - } catch (...) { - abort(); - } -} - } |