fix(rustup): 1.0.0-nightly (e2fa53e59 2015-03-20)
* replace `char_at()` calls with itertor, as suggested by compiler * fixed comparison in test
This commit is contained in:
@@ -52,7 +52,7 @@ impl FromStr for EntityTag {
|
||||
}
|
||||
|
||||
// The etag is weak if its first char is not a DQUOTE.
|
||||
if slice.char_at(0) == '"' /* '"' */ {
|
||||
if slice.chars().next().unwrap() == '"' /* '"' */ {
|
||||
// No need to check if the last char is a DQUOTE,
|
||||
// we already did that above.
|
||||
if check_slice_validity(slice.slice_chars(1, length-1)) {
|
||||
|
||||
Reference in New Issue
Block a user