Skip to content

Commit 9983a06

Browse files
committed
fix
1 parent e355906 commit 9983a06

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

crates/macros/src/struct_attrs.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,9 @@ impl StructAttrs {
8080
}
8181

8282
pub fn get_export_path(&self) -> PathBuf {
83-
self.export.clone().unwrap_or_else(|| {
84-
PathBuf::new()
85-
.join("bindings")
86-
.join(format!("{}.ts", self.get_name()))
87-
})
83+
self.export
84+
.clone()
85+
.unwrap_or_else(|| PathBuf::new().join("bindings"))
86+
.join(format!("{}.ts", self.get_name()))
8887
}
8988
}

0 commit comments

Comments
 (0)