Skip to content

Commit 2ef4fd9

Browse files
committed
Update rustfmt again
1 parent a3c04e2 commit 2ef4fd9

6 files changed

Lines changed: 13 additions & 23 deletions

File tree

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ matrix:
5555
- (cd diesel_migrations && cargo rustc --no-default-features --features "lint dotenv sqlite postgres mysql" -- -Zno-trans)
5656
- (cd diesel_infer_schema && cargo rustc --no-default-features --features "lint dotenv sqlite postgres mysql" -- -Zno-trans)
5757
- (cd diesel_compile_tests && travis-cargo test)
58-
- rust: nightly-2017-11-07
58+
- rust: nightly-2017-11-29
5959
env: RUSTFMT=YESPLEASE
6060
script:
6161
- |
6262
if ! [ -x "$(command -v rustfmt)" ]; then
63-
cargo install rustfmt-nightly --vers 0.2.15
63+
cargo install rustfmt-nightly --vers 0.2.16
6464
fi
6565
- cargo fmt --all -- --write-mode=diff
6666
env:

diesel/src/expression_methods/eq_all.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ where
3333
L2: EqAll<R2>,
3434
L3: EqAll<R3>,
3535
{
36-
type Output = And<
37-
<L1 as EqAll<R1>>::Output,
38-
And<<L2 as EqAll<R2>>::Output, <L3 as EqAll<R3>>::Output>,
39-
>;
36+
type Output =
37+
And<<L1 as EqAll<R1>>::Output, And<<L2 as EqAll<R2>>::Output, <L3 as EqAll<R3>>::Output>>;
4038

4139
fn eq_all(self, rhs: (R1, R2, R3)) -> Self::Output {
4240
self.0

diesel/src/mysql/connection/bind.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ fn known_buffer_size_for_ffi_type(tpe: ffi::enum_field_types) -> Option<usize> {
229229
t::MYSQL_TYPE_YEAR | t::MYSQL_TYPE_SHORT => Some(2),
230230
t::MYSQL_TYPE_INT24 | t::MYSQL_TYPE_LONG | t::MYSQL_TYPE_FLOAT => Some(4),
231231
t::MYSQL_TYPE_LONGLONG | t::MYSQL_TYPE_DOUBLE => Some(8),
232-
t::MYSQL_TYPE_TIME |
233-
t::MYSQL_TYPE_DATE |
234-
t::MYSQL_TYPE_DATETIME |
235-
t::MYSQL_TYPE_TIMESTAMP => Some(size_of::<ffi::MYSQL_TIME>()),
232+
t::MYSQL_TYPE_TIME
233+
| t::MYSQL_TYPE_DATE
234+
| t::MYSQL_TYPE_DATETIME
235+
| t::MYSQL_TYPE_TIMESTAMP => Some(size_of::<ffi::MYSQL_TIME>()),
236236
_ => None,
237237
}
238238
}

diesel/src/query_builder/select_statement/dsl_impls.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -228,17 +228,8 @@ where
228228
}
229229

230230
impl<F, S, W, O, L, Of> ForUpdateDsl for SelectStatement<F, S, NoDistinctClause, W, O, L, Of> {
231-
type Output = SelectStatement<
232-
F,
233-
S,
234-
NoDistinctClause,
235-
W,
236-
O,
237-
L,
238-
Of,
239-
NoGroupByClause,
240-
ForUpdateClause,
241-
>;
231+
type Output =
232+
SelectStatement<F, S, NoDistinctClause, W, O, L, Of, NoGroupByClause, ForUpdateClause>;
242233

243234
fn for_update(self) -> Self::Output {
244235
SelectStatement::new(

diesel_cli/tests/migration_list.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
use chrono::Utc;
32
use std::thread::sleep;
43
use std::time::Duration;

diesel_cli/tests/setup.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ fn setup_creates_default_migration_file() {
4848
let result = p.command("setup").run();
4949

5050
assert!(result.is_success(), "Result was unsuccessful {:?}", result);
51-
assert!(p.has_file(Path::new("migrations").join("00000000000000_diesel_initial_setup")));
51+
assert!(p.has_file(
52+
Path::new("migrations").join("00000000000000_diesel_initial_setup")
53+
));
5254
}
5355

5456
#[test]

0 commit comments

Comments
 (0)