Skip to content

Commit 5acde00

Browse files
committed
Make get_scan_response and download_scan private
These are internal helpers for scan()
1 parent 3344407 commit 5acde00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

escl-scan/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub fn get_scanner_capabilities(
8484
Ok(scanner_capabilities)
8585
}
8686

87-
pub fn get_scan_response(
87+
fn get_scan_response(
8888
scanner_base_path: &str,
8989
request_body: String,
9090
) -> Result<Response, ScannerError> {
@@ -110,7 +110,7 @@ pub fn get_scan_response(
110110
return Ok(response);
111111
}
112112

113-
pub fn download_scan(download_url: &str, destination_file: &str) -> Result<(), ScannerError> {
113+
fn download_scan(download_url: &str, destination_file: &str) -> Result<(), ScannerError> {
114114
log::info!("Downloading output file to {}...", destination_file);
115115
let mut response = match reqwest::blocking::get(download_url) {
116116
Ok(response) => response,

0 commit comments

Comments
 (0)