Skip to content

Commit e1bc7c1

Browse files
committed
trim VERSION file
1 parent 18b9225 commit e1bc7c1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "geode"
3-
version = "2.4.1"
3+
version = "2.4.2"
44
authors = ["HJfod <[email protected]>", "Camila314 <[email protected]>"]
55
edition = "2021"
66
build = "build.rs"

src/sdk.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,8 @@ pub fn get_version() -> Version {
483483
Version::parse(
484484
fs::read_to_string(Config::sdk_path().join("VERSION"))
485485
.nice_unwrap("Unable to read SDK version, make sure you are using SDK v0.4.2 or later")
486-
.as_str(),
486+
.as_str()
487+
.trim(),
487488
)
488489
.nice_unwrap("Invalid SDK version")
489490
}

0 commit comments

Comments
 (0)