diff options
| author | Fuwn <[email protected]> | 2022-07-18 07:56:32 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-07-18 07:56:32 +0000 |
| commit | 378d4a904fbec7e45395abd409a898106e11bef8 (patch) | |
| tree | e18cf9382f0912c403a7af8d4afe040d18ed962c /src | |
| parent | fix: license template text (diff) | |
| download | sydney-378d4a904fbec7e45395abd409a898106e11bef8.tar.xz sydney-378d4a904fbec7e45395abd409a898106e11bef8.zip | |
fix(main.rs): trim version for compare and displayv0.1.7
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 507c790..ab628f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -84,6 +84,8 @@ Report bugs to https://github.com/gemrest/sydney/issues"#, ) { Ok(response) => if let Some(content) = response.content() { + let content = content.trim(); + if content > &String::from(env!("CARGO_PKG_VERSION")) { app.error = Some(format!( "Your Sydney version ({}) is outdated. It is recommended that you \ |