aboutsummaryrefslogtreecommitdiff
path: root/font/src/ft/fc/char_set.rs
diff options
context:
space:
mode:
Diffstat (limited to 'font/src/ft/fc/char_set.rs')
-rw-r--r--font/src/ft/fc/char_set.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/font/src/ft/fc/char_set.rs b/font/src/ft/fc/char_set.rs
index 9d71fea4..310fa189 100644
--- a/font/src/ft/fc/char_set.rs
+++ b/font/src/ft/fc/char_set.rs
@@ -11,18 +11,16 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-use std::ptr::NonNull;
-
use foreign_types::ForeignTypeRef;
use super::ffi::FcCharSetCreate;
use super::ffi::{FcCharSet, FcCharSetAddChar, FcCharSetDestroy};
foreign_type! {
- pub type CharSet {
- type CType = FcCharSet;
- fn drop = FcCharSetDestroy;
- }
+ type CType = FcCharSet;
+ fn drop = FcCharSetDestroy;
+ pub struct CharSet;
+ pub struct CharSetRef;
}
impl CharSet {
@@ -33,7 +31,7 @@ impl CharSet {
impl Default for CharSet {
fn default() -> Self {
- CharSet(unsafe { NonNull::new(FcCharSetCreate()).unwrap() })
+ CharSet(unsafe { FcCharSetCreate() })
}
}