Skip to content

Commit 1d90301

Browse files
committed
Apply momo to fn gix::revision::Spec::from_bstr
Signed-off-by: Jiahao XU <[email protected]>
1 parent 25912fe commit 1d90301

File tree

1 file changed

+2
-0
lines changed
  • gix/src/revision/spec/parse

1 file changed

+2
-0
lines changed

gix/src/revision/spec/parse/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::collections::HashSet;
22

33
use gix_hash::ObjectId;
4+
use gix_macros::momo;
45
use gix_revision::spec::parse;
56

67
use crate::{bstr::BStr, revision::Spec, Repository};
@@ -30,6 +31,7 @@ impl<'repo> Spec<'repo> {
3031
/// Parse `spec` and use information from `repo` to resolve it, using `opts` to learn how to deal with ambiguity.
3132
///
3233
/// Note that it's easier and to use [`repo.rev_parse()`][Repository::rev_parse()] instead.
34+
#[momo]
3335
pub fn from_bstr<'a>(spec: impl Into<&'a BStr>, repo: &'repo Repository, opts: Options) -> Result<Self, Error> {
3436
let mut delegate = Delegate::new(repo, opts);
3537
match gix_revision::spec::parse(spec.into(), &mut delegate) {

0 commit comments

Comments
 (0)