cmd::desktop_entry: Fix references to other modules
This commit is contained in:
parent
21bc239cef
commit
2644932686
@ -1,10 +1,11 @@
|
||||
use fmt;
|
||||
use fs;
|
||||
use format::desktop_entry;
|
||||
use format::xdg::ini;
|
||||
use getopt;
|
||||
use io;
|
||||
use locale;
|
||||
use os;
|
||||
use xdg::desktop_entry;
|
||||
|
||||
export fn main() void = {
|
||||
const name = os::args[0];
|
||||
@ -47,10 +48,10 @@ export fn main() void = {
|
||||
os::stderr, "{}: {}: {}\n",
|
||||
name, file_name, fs::strerror(err))!;
|
||||
os::exit(os::status::FAILURE);
|
||||
case let err: desktop_entry::error =>
|
||||
case let err: ini::error =>
|
||||
fmt::fprintf(
|
||||
os::stderr, "{}: {}: {}\n",
|
||||
name, file_name, desktop_entry::strerror(err))!;
|
||||
name, file_name, ini::strerror(err))!;
|
||||
os::exit(os::status::FAILURE);
|
||||
};
|
||||
|
||||
@ -67,7 +68,7 @@ export fn main() void = {
|
||||
};
|
||||
};
|
||||
|
||||
fn parse_file (file_name: str) (desktop_entry::file | fs::error | desktop_entry::error) = {
|
||||
fn parse_file (file_name: str) (desktop_entry::file | fs::error | ini::error) = {
|
||||
let file = os::open(file_name)?;
|
||||
defer io::close(file)!;
|
||||
return desktop_entry::parse(file);
|
||||
|
Loading…
Reference in New Issue
Block a user