Skip to content

Commit

Permalink
refactor(sys): eliminate warning
Browse files Browse the repository at this point in the history
  • Loading branch information
qevolg committed Dec 30, 2024
1 parent b009e87 commit 189cc86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taos-ws-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn parse_rs_files(
}

if path.is_file() {
if path.extension().map_or(false, |ext| ext == "rs") {
if path.extension().is_some_and(|ext| ext == "rs") {
let content = fs::read_to_string(path)?;
let file = syn::parse_file(&content)?;
visitor.visit_file(&file);
Expand Down

0 comments on commit 189cc86

Please sign in to comment.