Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Raz-Hemo committed Mar 3, 2024
1 parent ae8d4a6 commit 7f23082
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/cached.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1571,11 +1571,7 @@ fn test_expiring_value_unexpired_article_returned_with_hit() {
}
}

#[cached::proc_macro::cached(
result = true,
time = 1,
result_fallback = true
)]
#[cached::proc_macro::cached(result = true, time = 1, result_fallback = true)]
fn always_failing() -> Result<String, ()> {
Err(())
}
Expand All @@ -1590,7 +1586,10 @@ fn test_result_fallback() {
}

// Pretend it succeeded once
ALWAYS_FAILING.lock().unwrap().cache_set((), "abc".to_string());
ALWAYS_FAILING
.lock()
.unwrap()
.cache_set((), "abc".to_string());
assert_eq!(always_failing(), Ok("abc".to_string()));
{
let cache = ALWAYS_FAILING.lock().unwrap();
Expand Down

0 comments on commit 7f23082

Please sign in to comment.