module/bm/commands: Use FileID::into()
This commit is contained in:
parent
557187fbd7
commit
bcc9771f28
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue