Skip to content

Commit

Permalink
Rollup merge of rust-lang#58118 - h-michael:libtest-theme-2018, r=Cen…
Browse files Browse the repository at this point in the history
…tril

Transition libtest to 2018 edition

Transitions libtest to Rust 2018; cc rust-lang#58099
r? @Centril
  • Loading branch information
kennytm authored Feb 7, 2019
2 parents 1efdda1 + 3c67873 commit 9b79370
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 71 deletions.
1 change: 1 addition & 0 deletions src/libtest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
authors = ["The Rust Project Developers"]
name = "test"
version = "0.0.0"
edition = "2018"

[lib]
name = "test"
Expand Down
2 changes: 1 addition & 1 deletion src/libtest/formatters/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl<T: Write> OutputFormatter for JsonFormatter<T> {
struct EscapedString<S: AsRef<str>>(S);

impl<S: AsRef<str>> ::std::fmt::Display for EscapedString<S> {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut start = 0;

for (i, byte) in self.0.as_ref().bytes().enumerate() {
Expand Down
Loading

0 comments on commit 9b79370

Please sign in to comment.