Skip to content

Commit

Permalink
spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
correabuscar committed Apr 11, 2024
1 parent 6976cea commit b7db583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ impl Window {
/// Add a string to the window at the specified cursor position.
pub fn mvprintw<T: AsRef<str>>(&self, y: i32, x: i32, string: T) -> i32 {
let s = CString::new(string.as_ref()).unwrap();
let ps= CString::new("%s").unwrap();//FIXME: find a better way
let ps = CString::new("%s").unwrap();//FIXME: find a better way
//XXX: extracted to variable 'ps' due to false positive warning https://github.com/rust-lang/rust/issues/78691
unsafe { curses::mvwprintw(self._window, y, x, ps.as_ptr(), s.as_ptr()) }
//unsafe { curses::mvwprintw(self._window, y, x, CString::new("%s").unwrap().as_ptr(), s.as_ptr()) }
Expand Down Expand Up @@ -491,7 +491,7 @@ impl Window {
/// Add a string to the window at the current cursor position.
pub fn printw<T: AsRef<str>>(&self, string: T) -> i32 {
let s = CString::new(string.as_ref()).unwrap();
let ps= CString::new("%s").unwrap();//FIXME: find a better way
let ps = CString::new("%s").unwrap();//FIXME: find a better way
//XXX: extracted to variable 'ps' due to false positive warning https://github.com/rust-lang/rust/issues/78691
unsafe { curses::wprintw(self._window, ps.as_ptr(), s.as_ptr()) }
}
Expand Down

0 comments on commit b7db583

Please sign in to comment.