diff options
author | kingdido999 <kingdido999@gmail.com> | 2018-09-05 08:39:05 +0800 |
---|---|---|
committer | kingdido999 <kingdido999@gmail.com> | 2018-09-05 08:39:05 +0800 |
commit | c57c99d9f71c8e1e0e3535ab295b305efae323f3 (patch) | |
tree | 31468f7e1ef28e91212956411b1cdb1bd74c7498 /components/gfx/platform/mod.rs | |
parent | 5063ac465b1eb02fef08ce9993568ebd78a19505 (diff) | |
download | servo-c57c99d9f71c8e1e0e3535ab295b305efae323f3.tar.gz servo-c57c99d9f71c8e1e0e3535ab295b305efae323f3.zip |
Format gfx platform #21373
Diffstat (limited to 'components/gfx/platform/mod.rs')
-rw-r--r-- | components/gfx/platform/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/gfx/platform/mod.rs b/components/gfx/platform/mod.rs index 897fbe9e8d3..106b232e308 100644 --- a/components/gfx/platform/mod.rs +++ b/components/gfx/platform/mod.rs @@ -23,7 +23,9 @@ mod freetype { /// Creates a String from the given null-terminated buffer. /// Panics if the buffer does not contain UTF-8. unsafe fn c_str_to_string(s: *const c_char) -> String { - str::from_utf8(CStr::from_ptr(s).to_bytes()).unwrap().to_owned() + str::from_utf8(CStr::from_ptr(s).to_bytes()) + .unwrap() + .to_owned() } pub mod font; |