mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
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:
parent
69bcec7898
commit
1c5c5caea7
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user