Skip to content

Commit 770337d

Browse files
committed
Fix source formatting
1 parent d807656 commit 770337d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/main.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ async fn main() -> Result<(), Error> {
7373
.build()
7474
.with_context(|| format!("Failed to create HTTP client"))?;
7575
let device_info = psa::request_device_information(&client, &vin).await?;
76-
let is_nac: bool = device_info.devices.map(|l| l.iter().any(|d| d.ecu_type.contains("NAC"))) == Some(true);
76+
let is_nac: bool = device_info
77+
.devices
78+
.map(|l| l.iter().any(|d| d.ecu_type.contains("NAC")))
79+
== Some(true);
7780

7881
// Maps not provided on command line, asking interactively for NAC
7982
let map = if map.is_none() && is_nac && interactive {

src/psa.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ pub fn print(software: &Software, update: &SoftwareUpdate) {
222222

223223
pub async fn request_device_information(
224224
client: &reqwest::Client,
225-
vin: &str
225+
vin: &str,
226226
) -> Result<DeviceResponse, Error> {
227227
let request = client
228228
.get(DEVICE_URL.replace("{VIN}", vin))
@@ -236,13 +236,13 @@ pub async fn request_device_information(
236236
return Err(anyhow!(
237237
"Failed to retrieve device information, make sure the VIN {} is correct.",
238238
vin
239-
))
239+
));
240240
}
241241
if response.status() == 404 {
242242
return Err(anyhow!(
243243
"Device not found, make sure the VIN {} is correct.",
244244
vin
245-
))
245+
));
246246
}
247247

248248
debug!("Received response {:?}", response);

0 commit comments

Comments
 (0)