Skip to content

Commit d8a3639

Browse files
committed
clippy fix
1 parent b2a6227 commit d8a3639

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ts_generator/generator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ pub fn write_single_ts_file(sqls_to_write: String) -> Result<()> {
7777
))?;
7878

7979
let parent_output_path: Option<&Path> = output.parent();
80-
if parent_output_path.is_some() {
81-
fs::create_dir_all(parent_output_path.unwrap())?;
80+
if let Some(parent_output_path) = parent_output_path {
81+
fs::create_dir_all(parent_output_path)?;
8282
}
8383

8484
let mut file_to_write = OpenOptions::new()

0 commit comments

Comments
 (0)