]> git.lizzy.rs Git - rust.git/blobdiff - src/libserialize/json.rs
Refactor `UserTypeAnnotation`.
[rust.git] / src / libserialize / json.rs
index 9439dc78d3ca447029f0ce336d689d6d83c4c6a0..3c289596d0ee88c9ea21008aacc255e2eaaaf557 100644 (file)
@@ -1,13 +1,3 @@
-// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 // Rust JSON serialization library
 // Copyright (c) 2011 Google Inc.
 
@@ -3493,7 +3483,7 @@ fn test_prettyencoder_indent_level_param() {
 
         // Helper function for counting indents
         fn indents(source: &str) -> usize {
-            let trimmed = source.trim_left_matches(' ');
+            let trimmed = source.trim_start_matches(' ');
             source.len() - trimmed.len()
         }