Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Commit 5982664

Browse files
committed
Merge pull request #206 from Gustorn/box_asref
Fix for breaking change in libstd
2 parents c600026 + 644cc74 commit 5982664

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/console.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,14 +476,14 @@ impl<'a> RootInitializer<'a> {
476476

477477
match self.font_dimensions {
478478
(horizontal, vertical) => {
479-
Root::set_custom_font(self.font_path.as_ref(),
479+
Root::set_custom_font((*self.font_path).as_ref(),
480480
self.font_layout, self.font_type,
481481
horizontal, vertical)
482482
}
483483
}
484484

485485
unsafe {
486-
let c_title = CString::new(self.title.as_ref().as_bytes()).unwrap();
486+
let c_title = CString::new((*self.title).as_ref().as_bytes()).unwrap();
487487
ffi::TCOD_console_init_root(self.width, self.height,
488488
c_title.as_ptr(),
489489
self.is_fullscreen as c_bool,

0 commit comments

Comments
 (0)