Skip to content

Commit

Permalink
Do not require macro naming convention in inline review. Fixes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed May 5, 2019
1 parent 609e5e3 commit 6c741d9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cargo-insta/src/inline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ impl FilePatcher {
}

let last = i.path.segments[i.path.segments.len() - 1].ident.to_string();
if !last.starts_with("assert_") || !last.ends_with("_snapshot_matches") {
return;
}

let tokens: Vec<_> = i.tts.clone().into_iter().collect();
if tokens.len() < 2 {
Expand Down

0 comments on commit 6c741d9

Please sign in to comment.