@ -29,7 +29,7 @@ pub fn append(filename: &str, label: &str, url: &str) -> Result<()> {
file.write_all(
format!(
"{}{}\t{}\t{}\t{}\r\n",
t.char().unwrap_or('i'),
t.to_char().unwrap_or('i'),
label,
sel,
host,
@ -51,7 +51,7 @@ impl Type {
}
impl Type {
pub fn char(&self) -> Option<char> {
pub fn to_char(&self) -> Option<char> {
Some(match self {
Type::Text => '0',
Type::Menu => '1',