diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-04-09 19:29:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 19:29:46 +0000 |
commit | 56fea343ff94b23aa94f8756643c015f20517e8f (patch) | |
tree | 3239fc02d89aebdac9d802b66836838102d93e97 /font/src/ft/fc/config.rs | |
parent | f2a5def2cbfd4812007aeab16e66c9851bc30d3d (diff) | |
download | alacritty-56fea343ff94b23aa94f8756643c015f20517e8f.tar.gz alacritty-56fea343ff94b23aa94f8756643c015f20517e8f.zip |
Set maximum Rust version to 1.31.0
By setting the minimum Rust version and enforcing it with CI, Alacritty
should hopefully make it possible for maintainers to package the
application even on distributions which are not rolling release.
The 1.31.0 target has been chosen here because it's the first version of
the Rust 2018 release. Bumping this version in the future should be
considered to be a breaking change and should only be done with caution
and in consideration of the supported Rust versions of the major
distributions available.
This fixes #2277.
Diffstat (limited to 'font/src/ft/fc/config.rs')
-rw-r--r-- | font/src/ft/fc/config.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/font/src/ft/fc/config.rs b/font/src/ft/fc/config.rs index cc3b5e52..12ec2844 100644 --- a/font/src/ft/fc/config.rs +++ b/font/src/ft/fc/config.rs @@ -17,10 +17,12 @@ use super::ffi::{FcConfig, FcConfigDestroy, FcConfigGetCurrent, FcConfigGetFonts use super::{FontSetRef, SetName}; foreign_type! { - pub type Config { - type CType = FcConfig; - fn drop = FcConfigDestroy; - } + type CType = FcConfig; + fn drop = FcConfigDestroy; + /// Wraps an FcConfig instance (owned) + pub struct Config; + /// Wraps an FcConfig reference (borrowed) + pub struct ConfigRef; } impl Config { |