Skip to content

Commit 3f19187

Browse files
author
rfm
committed
cargo fmt
1 parent 41eb04b commit 3f19187

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/models/krate.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ type CanonCrateName<T> = self::canon_crate_name::HelperType<T>;
8888
type All = diesel::dsl::Select<crates::table, AllColumns>;
8989
type WithName<'a> = diesel::dsl::Eq<CanonCrateName<crates::name>, CanonCrateName<&'a str>>;
9090
/// The result of a loose search
91-
type LikeName<'a> = diesel::dsl::Like<
92-
CanonCrateName<crates::name>,
93-
CanonCrateName<&'a str>,
94-
>;
91+
type LikeName<'a> = diesel::dsl::Like<CanonCrateName<crates::name>, CanonCrateName<&'a str>>;
9592
type ByName<'a> = diesel::dsl::Filter<All, WithName<'a>>;
9693
type ByExactName<'a> = diesel::dsl::Filter<All, diesel::dsl::Eq<crates::name, &'a str>>;
9794

src/tests/krate.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,7 @@ fn loose_search_order() {
434434
.expect_build(conn);
435435
// evalrs should match 3rd because of readme
436436
let three = CrateBuilder::new("evalrs", user.id)
437-
.readme(
438-
"evalrs_temp evalrs_temp evalrs_temp",
439-
)
437+
.readme("evalrs_temp evalrs_temp evalrs_temp")
440438
.description("description")
441439
.keyword("kw1")
442440
.expect_build(conn);

0 commit comments

Comments
 (0)