[rust] remove NcFile for macos; #1937 #1938

- remove the Notcurses.render_to_file method.
This commit is contained in:
joseLuís 2021-07-14 22:41:52 +02:00
parent 54ce1b6171
commit 84064da03f

View File

@ -584,6 +584,7 @@ impl Nc {
/// nothing will be written. /// nothing will be written.
/// ///
/// *C style function: [notcurses_render_to_file()][crate::notcurses_render_to_file].* /// *C style function: [notcurses_render_to_file()][crate::notcurses_render_to_file].*
#[cfg(not(target_os = "macos"))]
pub fn render_to_file(&mut self, fp: &mut NcFile) -> NcResult<()> { pub fn render_to_file(&mut self, fp: &mut NcFile) -> NcResult<()> {
error![unsafe { crate::notcurses_render_to_file(self, fp.as_nc_ptr()) }] error![unsafe { crate::notcurses_render_to_file(self, fp.as_nc_ptr()) }]
} }