Skip to content

Commit

Permalink
Revert "add some unwraps to test windows"
Browse files Browse the repository at this point in the history
This reverts commit 8092f64.
  • Loading branch information
PgBiel committed Apr 24, 2024
1 parent 8092f64 commit a8a55dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler-cli/src/new.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ impl Creator {
crate::fs::mkdir(&self.root)?;
crate::fs::mkdir(&self.src)?;
crate::fs::mkdir(&self.test)?;
crate::fs::mkdir(&self.external).unwrap();
crate::fs::mkdir(&self.external)?;

if !self.options.skip_git && !self.options.skip_github {
// Currently disabled
Expand All @@ -525,21 +525,21 @@ you can do so with the command \
Otherwise, you can use 'git clone' instead of 'git submodule add --name stdlib'."
)
} else {
crate::fs::git_init(&self.root).unwrap();
crate::fs::git_init(&self.root)?;
crate::fs::git_submodule_add(
"stdlib",
GLISTIX_STDLIB_URL,
&self.root,
&self.external_stdlib,
).unwrap();
)?;
}

match self.options.template {
Template::Lib => {
for file in FileToCreate::iter() {
let path = file.location(self);
if let Some(contents) = file.contents(self) {
write(path, &contents).unwrap();
write(path, &contents)?;
}
}
}
Expand Down

0 comments on commit a8a55dd

Please sign in to comment.