Skip to content

Commit 258fea6

Browse files
committed
Also migrate tests from failure to anyhow
1 parent ef46d7f commit 258fea6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api_generator/src/generator/output.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ mod test {
185185
use std::fs;
186186

187187
#[test]
188-
pub fn nominal_merge() -> anyhow::Result<(), failure::Error> {
188+
pub fn nominal_merge() -> anyhow::Result<()> {
189189
let dir = tempfile::tempdir()?;
190190
let dir_path = dir.path();
191191
let file_name = "test_merge.rs";
@@ -249,7 +249,7 @@ Contents of section bar
249249
}
250250

251251
#[test]
252-
fn unbalanced_sections() -> Result<(), failure::Error> {
252+
fn unbalanced_sections() -> anyhow::Result<()> {
253253
merge_should_fail(
254254
r#"
255255
// GENERATED-BEGIN:foo
@@ -280,7 +280,7 @@ Contents of section bar
280280
Ok(())
281281
}
282282

283-
fn merge_should_fail(input: &str) -> Result<(), failure::Error> {
283+
fn merge_should_fail(input: &str) -> anyhow::Result<()> {
284284
let dir = tempfile::tempdir()?;
285285
let dir_path = dir.path();
286286
let file_name = "test_merge.rs";

0 commit comments

Comments
 (0)