From e1bc7c178e6d3a42e4aaad2fae676bfafd1f43d7 Mon Sep 17 00:00:00 2001 From: matcool <26722564+matcool@users.noreply.github.com> Date: Thu, 3 Aug 2023 20:41:25 -0300 Subject: [PATCH] trim VERSION file --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/sdk.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0498ccf..a7ac052 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -626,7 +626,7 @@ dependencies = [ [[package]] name = "geode" -version = "2.4.1" +version = "2.4.2" dependencies = [ "ansi_term", "cfg-if", diff --git a/Cargo.toml b/Cargo.toml index 5771414..abbef68 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "geode" -version = "2.4.1" +version = "2.4.2" authors = ["HJfod ", "Camila314 "] edition = "2021" build = "build.rs" diff --git a/src/sdk.rs b/src/sdk.rs index d66ee97..95d5241 100644 --- a/src/sdk.rs +++ b/src/sdk.rs @@ -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") }