format/format: make description() to return long_name

This commit is contained in:
Tae-il Lim 2016-11-29 07:33:37 +09:00 committed by meh
parent 2ed824aaac
commit 981eb2a801
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ impl Input {
pub fn description(&self) -> &str { pub fn description(&self) -> &str {
unsafe { unsafe {
from_utf8_unchecked(CStr::from_ptr((*self.as_ptr()).name).to_bytes()) from_utf8_unchecked(CStr::from_ptr((*self.as_ptr()).long_name).to_bytes())
} }
} }

View File

@ -35,7 +35,7 @@ impl Output {
pub fn description(&self) -> &str { pub fn description(&self) -> &str {
unsafe { unsafe {
from_utf8_unchecked(CStr::from_ptr((*self.as_ptr()).name).to_bytes()) from_utf8_unchecked(CStr::from_ptr((*self.as_ptr()).long_name).to_bytes())
} }
} }