module/bm/commands: Use FileID::into()

This commit is contained in:
Matthias Beyer 2015-12-02 13:42:59 +01:00
parent 557187fbd7
commit bcc9771f28

View file

@ -51,7 +51,7 @@ pub fn remove_command(module: &Module, env: CommandEnv) -> CommandResult {
debug!("Remove by id: {}", id); debug!("Remove by id: {}", id);
let parser = Parser::new(JsonHeaderParser::new(None)); let parser = Parser::new(JsonHeaderParser::new(None));
let file = env.bk.get_file_by_id(module, &id, &parser).unwrap(); let file = env.bk.get_file_by_id(module, &id.into(), &parser).unwrap();
debug!("Remove file : {:?}", file); debug!("Remove file : {:?}", file);
if let Err(e) = env.bk.remove_file(module, file, checked) { if let Err(e) = env.bk.remove_file(module, file, checked) {