Skip to content

Commit

Permalink
chore: ran make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dilawar committed Jul 17, 2024
1 parent bc79f61 commit fcbf489
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: check format test lint fix
.PHONY: check format test lint fix fmt

check:
@cargo check
Expand All @@ -19,3 +19,6 @@ checks: check format test lint

fix:
@cargo clippy --fix --allow-dirty

fmt:
@cargo +nightly fmt
6 changes: 5 additions & 1 deletion src/sys/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ fn parse_iw_dev_scan(network_list: &str) -> anyhow::Result<Vec<Wifi>> {
Ok(wifis)
}

fn extract_value(line: &str, pattern_start: &str, pattern_end: Option<&str>) -> anyhow::Result<String> {
fn extract_value(
line: &str,
pattern_start: &str,
pattern_end: Option<&str>,
) -> anyhow::Result<String> {
let start = pattern_start.len();
if start < line.len() && &line[0..start] == pattern_start {
let end = match pattern_end {
Expand Down

0 comments on commit fcbf489

Please sign in to comment.