summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-11-10 01:46:36 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-22 02:03:35 +0100
commit1f9d2debdd38b1a9a668c330193a74661a08b627 (patch)
tree0fa96d9e1961e32bf923525243a47e65a0453a73 /tests
parent18c438bb7ac650744f9dcaccd4de6800170a91a8 (diff)
Use char instead of string literal
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/src/imag_create.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/src/imag_create.rs b/tests/ui/src/imag_create.rs
index 993ba366..18571952 100644
--- a/tests/ui/src/imag_create.rs
+++ b/tests/ui/src/imag_create.rs
@@ -63,7 +63,7 @@ fn test_creating_works() {
{
let version_line = lines.next().unwrap();
assert!(version_line.starts_with("version = '"));
- assert!(version_line.ends_with("'"));
+ assert!(version_line.ends_with('\''));
let version = version_line.replace("version = '", "").replace("'", "");
let semver = semver::Version::parse(&version);
assert!(semver.is_ok());