Skip to content

Commit e84ab37

Browse files
committed
clean
1 parent a6c5292 commit e84ab37

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ use python::setup_preset;
1111
long_about = "CPA is a cli tool designed to expedite the setup of new projects by automating the creation of various configuration files."
1212
)]
1313
enum Cli {
14-
#[clap(
15-
about = "Create a new project",
16-
long_about = "Create a new project using specified preset."
17-
)]
14+
#[clap(about = "Create a new project", long_about = "Create a new project using specified preset.")]
1815
Create(CreateArgs),
1916
#[clap(
2017
about = "Update existing project",

src/python.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@ pub fn setup_preset(mut preset: String, name: String, create: bool) {
158158
};
159159
let out_pyproj: String = pyproj.render().expect("Failed to render");
160160
let mut f_pyproj = File::create(format!("{}/pyproject.toml", prefix)).expect("Could not create file");
161-
f_pyproj
162-
.write_all(out_pyproj.as_bytes())
163-
.expect("Could not write to file");
161+
f_pyproj.write_all(out_pyproj.as_bytes()).expect("Could not write to file");
164162
println!("Project created at: {}", prefix)
165163
}

0 commit comments

Comments
 (0)