Skip to content

Commit e5b403c

Browse files
committed
Update tests
1 parent efd295a commit e5b403c

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

tests/target/attrib.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
// rustfmt-wrap_comments: true
22
// Test attributes and doc comments are preserved.
3-
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
4-
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
5-
html_root_url = "https://doc.rust-lang.org/nightly/",
6-
html_playground_url = "https://play.rust-lang.org/",
7-
test(attr(deny(warnings))))]
3+
#![doc(
4+
html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
5+
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
6+
html_root_url = "https://doc.rust-lang.org/nightly/",
7+
html_playground_url = "https://play.rust-lang.org/",
8+
test(attr(deny(warnings)))
9+
)]
810

911
//! Doc comment
1012

tests/target/enum.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,10 @@ pub enum Bencoding<'i> {
156156
pub enum CoreResourceMsg {
157157
SetCookieForUrl(
158158
ServoUrl,
159-
#[serde(deserialize_with = "::hyper_serde::deserialize",
160-
serialize_with = "::hyper_serde::serialize")]
159+
#[serde(
160+
deserialize_with = "::hyper_serde::deserialize",
161+
serialize_with = "::hyper_serde::serialize"
162+
)]
161163
Cookie,
162164
CookieSource,
163165
),
@@ -221,7 +223,9 @@ enum State {
221223
// #2190
222224
#[derive(Debug, Fail)]
223225
enum AnError {
224-
#[fail(display = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")]
226+
#[fail(
227+
display = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
228+
)]
225229
UnexpectedSingleToken { token: syn::Token },
226230
}
227231

0 commit comments

Comments
 (0)