Skip to content

Commit 8ebf958

Browse files
Update to Rust Edition 2021, remove extern crate
1 parent b44d5e0 commit 8ebf958

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = "MIT"
88
readme = "README.md"
99
repository = "https://github.com/PistonDevelopers/freetype-rs.git"
1010
homepage = "https://github.com/PistonDevelopers/freetype-rs"
11-
edition = "2018"
11+
edition = "2021"
1212

1313
[lib]
1414
name = "freetype"

examples/glyph_outline.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
extern crate freetype as ft;
1+
use freetype as ft;
22

33
fn draw_curve(curve: ft::outline::Curve) {
44
match curve {

examples/single_glyph.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
extern crate freetype as ft;
2-
extern crate unicode_normalization;
1+
use freetype as ft;
32

43
use unicode_normalization::UnicodeNormalization;
54

0 commit comments

Comments
 (0)