Bug 1617369 - Reformat a rust test using rustfmt r=marco

Depends on D65902

Differential Revision: https://phabricator.services.mozilla.com/D65903

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Sylvestre Ledru 2020-03-10 09:27:56 +00:00
parent 69bcec7898
commit 1c5c5caea7

View File

@ -1,5 +1,5 @@
#[no_mangle]
pub extern fn test_rust() -> *const u8 {
pub extern "C" fn test_rust() -> *const u8 {
// NB: rust &str aren't null terminated.
let greeting = "hello from rust.\0";
greeting.as_ptr()