Skip to content

Commit 0334493

Browse files
committed
Format
1 parent 708a387 commit 0334493

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/cargo-about/clarify.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,7 @@ pub fn cmd(args: Args) -> anyhow::Result<()> {
180180
let checksum = ctx.finish();
181181

182182
let text = spdx::detection::TextData::new(subsection);
183-
let scan_result = strategy
184-
.scan(&text);
183+
let scan_result = strategy.scan(&text);
185184

186185
let found_license = scan_result
187186
.license

src/licenses.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use anyhow::Context as _;
99
use krates::Utf8PathBuf as PathBuf;
1010
use rayon::prelude::*;
1111
pub use resolution::Resolved;
12-
use std::{cmp, fmt, sync::Arc};
1312
use spdx::detection as sd;
13+
use std::{cmp, fmt, sync::Arc};
1414

1515
pub type LicenseStore = sd::Store;
1616

src/licenses/scan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ fn scan_text(contents: &str, strat: &Scanner<'_>, threshold: f32) -> ScanResult
166166
let Some(identified) = lic_match.license else {
167167
return ScanResult::NoLicense;
168168
};
169-
169+
170170
let lic_id = match spdx::license_id(identified.name) {
171171
Some(id) => Identified {
172172
confidence: lic_match.score,

0 commit comments

Comments
 (0)