From d7ea8af665ff9f297b63624b0258013fe4435dad Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Fri, 28 Jun 2019 22:43:39 +0200 Subject: [PATCH] Fix tests on nightly (by avoiding UB, even) --- .../rust/src/repo_checkout_at_options/repo_checkout_filter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs b/rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs index 4d2fe731..e1294a54 100644 --- a/rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs +++ b/rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs @@ -65,7 +65,7 @@ impl FromGlibPtrNone for &RepoCheckoutFilter { /// /// # Panics /// If any parameter is a null pointer, the function panics. -unsafe extern "C" fn filter_trampoline( +unsafe fn filter_trampoline( repo: *mut OstreeRepo, path: *const c_char, stat: *mut libc::stat,