diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-02-04 23:12:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-04 23:12:56 +0000 |
commit | 851e77383ea764b793914696b29b4e6d95632ebb (patch) | |
tree | afedce19a72fa35fc8acd2a91a6bb10f22dd28ff /font/src | |
parent | 40237b213a847cb3fabaa4da0ef2f295e9bf56a9 (diff) | |
download | alacritty-851e77383ea764b793914696b29b4e6d95632ebb.tar.gz alacritty-851e77383ea764b793914696b29b4e6d95632ebb.zip |
Remove library lockfiles from git
Following Rust's standard, the lockfiles for Alacritty's
sub-libraries have been removed.
One instance of the deprecated `ATOMIC_USIZE_INIT` has
also been removed.
This fixes #2040.
Diffstat (limited to 'font/src')
-rw-r--r-- | font/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/font/src/lib.rs b/font/src/lib.rs index 6fc418dd..8762c0b1 100644 --- a/font/src/lib.rs +++ b/font/src/lib.rs @@ -47,7 +47,7 @@ extern crate log; use std::hash::{Hash, Hasher}; use std::{fmt, cmp}; -use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering}; +use std::sync::atomic::{AtomicUsize, Ordering}; // If target isn't macos or windows, reexport everything from ft #[cfg(not(any(target_os = "macos", windows)))] @@ -147,7 +147,7 @@ impl FontKey { /// /// The generated key will be globally unique pub fn next() -> FontKey { - static TOKEN: AtomicUsize = ATOMIC_USIZE_INIT; + static TOKEN: AtomicUsize = AtomicUsize::new(0); FontKey { token: TOKEN.fetch_add(1, Ordering::SeqCst) as _, |