Skip to content

Commit

Permalink
trim VERSION file
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Aug 3, 2023
1 parent 18b9225 commit e1bc7c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "geode"
version = "2.4.1"
version = "2.4.2"
authors = ["HJfod <dreadrollmusic@gmail.com>", "Camila314 <ilaca314@gmail.com>"]
edition = "2021"
build = "build.rs"
Expand Down
3 changes: 2 additions & 1 deletion src/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,8 @@ pub fn get_version() -> Version {
Version::parse(
fs::read_to_string(Config::sdk_path().join("VERSION"))
.nice_unwrap("Unable to read SDK version, make sure you are using SDK v0.4.2 or later")
.as_str(),
.as_str()
.trim(),
)
.nice_unwrap("Invalid SDK version")
}
Expand Down

0 comments on commit e1bc7c1

Please sign in to comment.