You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-version-sync/0002-Update-to-syn-0.14.patch

31 lines
868 B

From 441bd2296af2d5735f413dac0162939d795aa6f1 Mon Sep 17 00:00:00 2001
From: Jonas Schievink <jonasschievink@gmail.com>
Date: Sun, 29 Jul 2018 17:31:38 +0200
Subject: [PATCH 2/2] Update to syn 0.14
syn wasn't able to parse my lib.rs, likely because it didn't support
statement attributes. This should fix that, and it even makes a piece of
code slightly simpler.
(cherry picked from commit d25c08aa8c29cb71b9522c62f2352dbf1f2f5d83)
---
src/lib.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib.rs b/src/lib.rs
index 4e98771..116d558 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -414,7 +414,7 @@ pub fn check_html_root_url(path: &str, pkg_name: &str, pkg_version: &str) -> Res
_ => continue,
};
- if ident.as_ref() != "doc" {
+ if ident != "doc" {
continue;
}
--
2.19.0.rc1