Skip to content

Commit

Permalink
Shorten scanner_capabilities_response_string a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
tanuva committed Nov 20, 2023
1 parent 5acde00 commit c72758d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions escl-scan/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ pub fn get_scanner_capabilities(
Err(err) => return Err(err.into()),
};

let scanner_capabilities_response_string = response.text().expect("text is a string");
let response_string = response.text().expect("text is a string");
let scanner_capabilities: structs::ScannerCapabilities =
match serde_xml_rs::from_str(&scanner_capabilities_response_string) {
match serde_xml_rs::from_str(&response_string) {
Ok(caps) => caps,
Err(err) => return Err(err.into()),
};
Expand Down

0 comments on commit c72758d

Please sign in to comment.