diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-30 22:18:55 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-30 22:18:55 +0200 |
| commit | 181f756a9e8f7b664101058fe91e36b3858c2d02 (patch) | |
| tree | 542e7c694e91d8cc91fa97a328e9bda0567db679 /src/font.rs | |
| parent | 0d44cf532136f3ba8e34d6f967f9e844cfb9c3f0 (diff) | |
Format everything with rustfmt! 💚
Diffstat (limited to 'src/font.rs')
| -rw-r--r-- | src/font.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/font.rs b/src/font.rs index c37c913e..1e34ac05 100644 --- a/src/font.rs +++ b/src/font.rs @@ -30,9 +30,8 @@ impl FaceFromVec for OwnedFace { fn from_vec(vec: Vec<u8>, i: u32) -> Option<Self> { // The vec's location is stable in memory since we don't touch it and // it can't be touched from outside this type. - let slice: &'static [u8] = unsafe { - std::slice::from_raw_parts(vec.as_ptr(), vec.len()) - }; + let slice: &'static [u8] = + unsafe { std::slice::from_raw_parts(vec.as_ptr(), vec.len()) }; Some(Self { data: vec, |
