Skip to content

Commit b3ec296

Browse files
committed
autoformat and remove unit test
1 parent 12e6389 commit b3ec296

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/bootstrap/src/core/download.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,10 @@ fn extract_curl_version(out: &[u8]) -> f32 {
2626
let Some(i) = out.iter().position(|&x| x == b' ') else { return 0.0 };
2727
let out = &out[..i];
2828
let Some(k) = out.iter().rev().position(|&x| x == b'.') else { return 0.0 };
29-
let out = &out[..out.len()-k-1];
29+
let out = &out[..out.len() - k - 1];
3030
std::str::from_utf8(out).unwrap().parse().unwrap_or(0.0)
3131
}
3232

33-
#[test]
34-
fn test_extract_curl_version() {
35-
assert_eq!(extract_curl_version(b"\
36-
curl 8.4.0 (x86_64-pc-linux-gnu) libcurl/8.4.0 \
37-
OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.4 \
38-
libssh2/1.11.0 nghttp2/1.57.0"), 8.4);
39-
}
40-
4133
fn curl_version() -> f32 {
4234
let mut curl = Command::new("curl");
4335
curl.arg("-V");

0 commit comments

Comments
 (0)