From bef4f534e9015dfdb86a0494a79dcdf1c3847c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joseLu=C3=ADs?= Date: Fri, 25 Dec 2020 23:12:08 +0100 Subject: [PATCH] rust: fix missing imports --- rust/src/bindings.rs | 2 ++ rust/src/direct/methods.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rust/src/bindings.rs b/rust/src/bindings.rs index 6e2a12ece..345c33d4e 100644 --- a/rust/src/bindings.rs +++ b/rust/src/bindings.rs @@ -165,6 +165,8 @@ pub use ffi::{ ncdirect_palette_size, ncdirect_printf_aligned, ncdirect_putstr, + ncdirect_raster_frame, + ncdirect_render_frame, ncdirect_render_image, ncdirect_rounded_box, ncdirect_stop, diff --git a/rust/src/direct/methods.rs b/rust/src/direct/methods.rs index d30d28c2a..bf27749f2 100644 --- a/rust/src/direct/methods.rs +++ b/rust/src/direct/methods.rs @@ -70,7 +70,7 @@ impl NcDirect { /// The `align`, `blitter`, and `scale` arguments must be the same as those /// passed to render_frame(). /// - /// *C style function: [ncdirect_render_image()][crate::ncdirect_render_image].* + /// *C style function: [ncdirect_raster_frame()][crate::ncdirect_raster_frame].* pub fn raster_frame( &mut self, faken: &mut NcPlane, @@ -97,7 +97,7 @@ impl NcDirect { /// The `align`, `blitter`, and `scale` arguments must be the same as those /// passed to render_frame(). /// - /// *C style function: [ncdirect_render_image()][crate::ncdirect_render_image].* + /// *C style function: [ncdirect_render_frame()][crate::ncdirect_render_frame].* pub fn render_frame<'a>( &mut self, filename: &str,