cleanup: move scan changers API implementation

This commit is contained in:
Dietmar Maurer
2021-01-27 09:58:16 +01:00
parent 16b4d78400
commit 887f1cb90c
4 changed files with 42 additions and 28 deletions

View File

@ -149,7 +149,7 @@ fn scan_for_changers(
) -> Result<(), Error> {
let output_format = get_output_format(&param);
let info = &api2::tape::changer::API_METHOD_SCAN_CHANGERS;
let info = &api2::tape::API_METHOD_SCAN_CHANGERS;
let mut data = match info.handler {
ApiHandler::Sync(handler) => (handler)(param, info, rpcenv)?,
_ => unreachable!(),