Make rust 1.28 minimum supported version (#285)

This commit is contained in:
Christian Legnitto 2018-12-03 17:28:49 -08:00 committed by GitHub
parent fe2bf611bb
commit 7bb62ff259
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 6 deletions

View file

@ -8,8 +8,8 @@ rust:
- nightly
# Prevent accidentally breaking older Rust versions
- 1.23.0
- 1.22.0
- 1.29.0
- 1.28.0
env:
global:

View file

@ -11,9 +11,9 @@ jobs:
nightly:
rustup_toolchain: nightly
minimum_supported_version_plus_one:
rustup_toolchain: 1.23.0
rustup_toolchain: 1.29.0
minimum_supported_version:
rustup_toolchain: 1.22.0
rustup_toolchain: 1.28.0
steps:
- ${{ if ne(parameters.name, 'Windows') }}:
# Linux and macOS.

View file

@ -2,6 +2,10 @@
## Changes
- The minimum required Rust version is now `1.28.0`.
[#271](https://github.com/graphql-rust/juniper/pull/271)
- Juniper is now generic about the exact representation of scalar values. This
allows downstream crates to add support for own scalar value representations.

View file

@ -788,9 +788,9 @@ fn clean_docstring(multiline: &[&str]) -> Option<String> {
.map(|ch| ch.is_whitespace())
.unwrap_or(false)
{
ln.trim_end() // skip trimming the first line
ln.trim_right() // skip trimming the first line
} else if ln.len() >= trim_start {
&ln[trim_start..].trim_end()
ln[trim_start..].trim_right()
} else {
""
};