Skip to content

Commit bf87200

Browse files
committed
Regex implements pattern, let's use that
1 parent b7cad84 commit bf87200

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

diesel_cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dotenv = "0.8.0"
2020

2121
[dev-dependencies]
2222
tempdir = "0.3.4"
23-
regex = "0.1.48"
23+
regex = { version = "0.1.48", features = ["pattern"] }
2424

2525
[features]
2626
postgres = ["diesel/postgres"]

diesel_cli/tests/migrations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Creating migrations/\\d{14}_hello/up.sql
1717
Creating migrations/\\d{14}_hello/down.sql\
1818
").unwrap();
1919
assert!(result.is_success());
20-
assert!(expected_stdout.is_match(result.stdout()));
20+
assert!(result.stdout().contains(&expected_stdout));
2121

2222
let migrations = p.migrations();
2323
assert_eq!(1, migrations.len());

0 commit comments

Comments
 (0)