From 251b96a6793ec25ed69269038c228bbddd35ee65 Mon Sep 17 00:00:00 2001 From: Matthijs van Otterdijk Date: Fri, 19 May 2017 20:47:59 +0200 Subject: [PATCH] use static str for compatibility with older rust --- src/resources/env_config.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/resources/env_config.rs b/src/resources/env_config.rs index 13be69cb..a21ccf2e 100644 --- a/src/resources/env_config.rs +++ b/src/resources/env_config.rs @@ -21,12 +21,12 @@ use std::env; -pub static JQUERY_URL: &str = &"https://code.jquery.com/jquery-2.1.4.min.js"; -pub static MATHJAX_URL: &str = &"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"; -pub static HIGHLIGHT_URL: &str = &"highlight.js"; -pub static AWESOME_URL: &str = &"https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"; -pub static OPEN_SANS_URL: &str = &"https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"; -pub static SOURCE_CODE_PRO_URL: &str = &"https://fonts.googleapis.com/css?family=Source+Code+Pro:500"; +pub static JQUERY_URL: &'static str = &"https://code.jquery.com/jquery-2.1.4.min.js"; +pub static MATHJAX_URL: &'static str = &"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"; +pub static HIGHLIGHT_URL: &'static str = &"highlight.js"; +pub static AWESOME_URL: &'static str = &"https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"; +pub static OPEN_SANS_URL: &'static str = &"https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"; +pub static SOURCE_CODE_PRO_URL: &'static str = &"https://fonts.googleapis.com/css?family=Source+Code+Pro:500"; /// A third-party resource pub trait Resource {