|
1 | 1 | #![allow(clippy::result_large_err)]
|
2 | 2 | use std::convert::TryInto;
|
3 | 3 |
|
4 |
| -use gix_macros::momo; |
5 |
| - |
6 | 4 | use crate::{bstr::BStr, config, remote, remote::find, Remote};
|
7 | 5 |
|
8 | 6 | impl crate::Repository {
|
@@ -63,22 +61,18 @@ impl crate::Repository {
|
63 | 61 | /// as negations/excludes are applied after includes.
|
64 | 62 | ///
|
65 | 63 | /// We will only include information if we deem it [trustworthy][crate::open::Options::filter_config_section()].
|
66 |
| - #[momo] |
67 |
| - #[allow(clippy::needless_lifetimes)] |
68 | 64 | pub fn try_find_remote<'a>(&self, name_or_url: impl Into<&'a BStr>) -> Option<Result<Remote<'_>, find::Error>> {
|
69 |
| - self.try_find_remote_inner(name_or_url, true) |
| 65 | + self.try_find_remote_inner(name_or_url.into(), true) |
70 | 66 | }
|
71 | 67 |
|
72 | 68 | /// Similar to [`try_find_remote()`][Self::try_find_remote()], but removes a failure mode if rewritten URLs turn out to be invalid
|
73 | 69 | /// as it skips rewriting them.
|
74 | 70 | /// Use this in conjunction with [`Remote::rewrite_urls()`] to non-destructively apply the rules and keep the failed urls unchanged.
|
75 |
| - #[momo] |
76 |
| - #[allow(clippy::needless_lifetimes)] |
77 | 71 | pub fn try_find_remote_without_url_rewrite<'a>(
|
78 | 72 | &self,
|
79 | 73 | name_or_url: impl Into<&'a BStr>,
|
80 | 74 | ) -> Option<Result<Remote<'_>, find::Error>> {
|
81 |
| - self.try_find_remote_inner(name_or_url, false) |
| 75 | + self.try_find_remote_inner(name_or_url.into(), false) |
82 | 76 | }
|
83 | 77 |
|
84 | 78 | fn try_find_remote_inner<'a>(
|
|
0 commit comments