diff options
author | NerdyPepper <[email protected]> | 2018-07-30 17:17:42 +0100 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2018-07-30 17:17:42 +0100 |
commit | ffacbf9aec3342519190755a913faa11438f3f28 (patch) | |
tree | 75af81e031b6c528847a5763d726cacd3cfddb1d | |
parent | 769b323073a523414fd8bbfa1c3a734529196c1d (diff) |
Add profiles
-rw-r--r-- | Cargo.toml | 7 | ||||
-rw-r--r-- | src/content.rs | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -11,3 +11,10 @@ regex = "1" | |||
11 | urlencoding = "1.0.0" | 11 | urlencoding = "1.0.0" |
12 | clap = "2.32.0" | 12 | clap = "2.32.0" |
13 | lazy_static = "1.0.2" | 13 | lazy_static = "1.0.2" |
14 | |||
15 | [profile.dev] | ||
16 | opt-level = 1 | ||
17 | |||
18 | [profile.release] | ||
19 | opt-level = 3 | ||
20 | |||
diff --git a/src/content.rs b/src/content.rs index d767f9c..aa45207 100644 --- a/src/content.rs +++ b/src/content.rs | |||
@@ -24,7 +24,7 @@ pub fn query_url_gen(title: &str) -> String { | |||
24 | url.push_str(&urlencoding::encode(title)); | 24 | url.push_str(&urlencoding::encode(title)); |
25 | url.push_str("&"); | 25 | url.push_str("&"); |
26 | url.push_str("redirects=1&"); | 26 | url.push_str("redirects=1&"); |
27 | url.push_str("pllimit=40&"); | 27 | url.push_str("pllimit=100&"); |
28 | url.push_str("explaintext=1"); | 28 | url.push_str("explaintext=1"); |
29 | url | 29 | url |
30 | } | 30 | } |