summaryrefslogtreecommitdiffstats
path: root/font/src/lib.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2019-02-04 23:12:56 +0000
committerGitHub <noreply@github.com>2019-02-04 23:12:56 +0000
commit851e77383ea764b793914696b29b4e6d95632ebb (patch)
treeafedce19a72fa35fc8acd2a91a6bb10f22dd28ff /font/src/lib.rs
parent40237b213a847cb3fabaa4da0ef2f295e9bf56a9 (diff)
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/lib.rs')
-rw-r--r--font/src/lib.rs4
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 _,