summaryrefslogtreecommitdiffstats
path: root/font/src/ft/fc
diff options
context:
space:
mode:
Diffstat (limited to 'font/src/ft/fc')
-rw-r--r--font/src/ft/fc/char_set.rs2
-rw-r--r--font/src/ft/fc/config.rs2
-rw-r--r--font/src/ft/fc/font_set.rs2
-rw-r--r--font/src/ft/fc/object_set.rs2
-rw-r--r--font/src/ft/fc/pattern.rs2
5 files changed, 5 insertions, 5 deletions
diff --git a/font/src/ft/fc/char_set.rs b/font/src/ft/fc/char_set.rs
index 9d71fea4..42c25b06 100644
--- a/font/src/ft/fc/char_set.rs
+++ b/font/src/ft/fc/char_set.rs
@@ -19,7 +19,7 @@ use super::ffi::FcCharSetCreate;
use super::ffi::{FcCharSet, FcCharSetAddChar, FcCharSetDestroy};
foreign_type! {
- pub type CharSet {
+ pub unsafe type CharSet {
type CType = FcCharSet;
fn drop = FcCharSetDestroy;
}
diff --git a/font/src/ft/fc/config.rs b/font/src/ft/fc/config.rs
index cc3b5e52..46a3a934 100644
--- a/font/src/ft/fc/config.rs
+++ b/font/src/ft/fc/config.rs
@@ -17,7 +17,7 @@ use super::ffi::{FcConfig, FcConfigDestroy, FcConfigGetCurrent, FcConfigGetFonts
use super::{FontSetRef, SetName};
foreign_type! {
- pub type Config {
+ pub unsafe type Config {
type CType = FcConfig;
fn drop = FcConfigDestroy;
}
diff --git a/font/src/ft/fc/font_set.rs b/font/src/ft/fc/font_set.rs
index e280201b..632c80b0 100644
--- a/font/src/ft/fc/font_set.rs
+++ b/font/src/ft/fc/font_set.rs
@@ -21,7 +21,7 @@ use super::{ConfigRef, ObjectSetRef, PatternRef};
use super::ffi::{FcFontSet, FcFontSetDestroy, FcFontSetList};
foreign_type! {
- pub type FontSet {
+ pub unsafe type FontSet {
type CType = FcFontSet;
fn drop = FcFontSetDestroy;
}
diff --git a/font/src/ft/fc/object_set.rs b/font/src/ft/fc/object_set.rs
index 4ec15feb..1cc7e114 100644
--- a/font/src/ft/fc/object_set.rs
+++ b/font/src/ft/fc/object_set.rs
@@ -19,7 +19,7 @@ use super::ffi::{FcObjectSet, FcObjectSetAdd, FcObjectSetCreate, FcObjectSetDest
use foreign_types::ForeignTypeRef;
foreign_type! {
- pub type ObjectSet {
+ pub unsafe type ObjectSet {
type CType = FcObjectSet;
fn drop = FcObjectSetDestroy;
}
diff --git a/font/src/ft/fc/pattern.rs b/font/src/ft/fc/pattern.rs
index b6eceed8..149a45b1 100644
--- a/font/src/ft/fc/pattern.rs
+++ b/font/src/ft/fc/pattern.rs
@@ -326,7 +326,7 @@ impl_derived_property_iter! {
}
foreign_type! {
- pub type Pattern {
+ pub unsafe type Pattern {
type CType = FcPattern;
fn drop = FcPatternDestroy;
}