Skip to content

Commit e760225

Browse files
committed
Manually de-momo Repository::try_find_remote_{without_url_rewrite}
Since the `try_find_remote_inner` is already a separate function, there's no need to use `momo`. Signed-off-by: Jiahao XU <[email protected]>
1 parent ff210d8 commit e760225

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

gix/src/repository/remote.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#![allow(clippy::result_large_err)]
22
use std::convert::TryInto;
33

4-
use gix_macros::momo;
5-
64
use crate::{bstr::BStr, config, remote, remote::find, Remote};
75

86
impl crate::Repository {
@@ -63,22 +61,18 @@ impl crate::Repository {
6361
/// as negations/excludes are applied after includes.
6462
///
6563
/// We will only include information if we deem it [trustworthy][crate::open::Options::filter_config_section()].
66-
#[momo]
67-
#[allow(clippy::needless_lifetimes)]
6864
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)
7066
}
7167

7268
/// Similar to [`try_find_remote()`][Self::try_find_remote()], but removes a failure mode if rewritten URLs turn out to be invalid
7369
/// as it skips rewriting them.
7470
/// 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)]
7771
pub fn try_find_remote_without_url_rewrite<'a>(
7872
&self,
7973
name_or_url: impl Into<&'a BStr>,
8074
) -> 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)
8276
}
8377

8478
fn try_find_remote_inner<'a>(

0 commit comments

Comments
 (0)