diff options
Diffstat (limited to 'src/lib/git')
| -rw-r--r-- | src/lib/git/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/git/mod.rs b/src/lib/git/mod.rs index b0576fd..875a336 100644 --- a/src/lib/git/mod.rs +++ b/src/lib/git/mod.rs | |||
| @@ -842,9 +842,9 @@ fn extract_sig_from_patch_tags<'a>( | |||
| 842 | ) -> Result<git2::Signature<'a>> { | 842 | ) -> Result<git2::Signature<'a>> { |
| 843 | let v = tags | 843 | let v = tags |
| 844 | .iter() | 844 | .iter() |
| 845 | .find(|t| t.as_vec()[0].eq(tag_name)) | 845 | .find(|t| t.as_slice()[0].eq(tag_name)) |
| 846 | .context(format!("tag '{tag_name}' not present in patch"))? | 846 | .context(format!("tag '{tag_name}' not present in patch"))? |
| 847 | .as_vec(); | 847 | .as_slice(); |
| 848 | if v.len() != 5 { | 848 | if v.len() != 5 { |
| 849 | bail!("tag '{tag_name}' is incorrectly formatted") | 849 | bail!("tag '{tag_name}' is incorrectly formatted") |
| 850 | } | 850 | } |