@@ -3,7 +3,6 @@ use std::borrow::Cow;
3
3
use std:: ffi:: OsStr ;
4
4
5
5
use gix_features:: threading:: OwnShared ;
6
- use gix_macros:: momo;
7
6
8
7
use crate :: bstr:: ByteSlice ;
9
8
use crate :: {
@@ -28,7 +27,6 @@ impl<'repo> Snapshot<'repo> {
28
27
}
29
28
30
29
/// Like [`boolean()`][Self::boolean()], but it will report an error if the value couldn't be interpreted as boolean.
31
- #[ momo]
32
30
pub fn try_boolean < ' a > ( & self , key : impl Into < & ' a BStr > ) -> Option < Result < bool , gix_config:: value:: Error > > {
33
31
self . repo . config . resolved . boolean ( key. into ( ) )
34
32
}
@@ -44,23 +42,20 @@ impl<'repo> Snapshot<'repo> {
44
42
}
45
43
46
44
/// Like [`integer()`][Self::integer()], but it will report an error if the value couldn't be interpreted as boolean.
47
- #[ momo]
48
45
pub fn try_integer < ' a > ( & self , key : impl Into < & ' a BStr > ) -> Option < Result < i64 , gix_config:: value:: Error > > {
49
46
self . repo . config . resolved . integer ( key. into ( ) )
50
47
}
51
48
52
49
/// Return the string at `key`, or `None` if there is no such value.
53
50
///
54
51
/// Note that this method takes the most recent value at `key` even if it is from a file with reduced trust.
55
- #[ momo]
56
52
pub fn string < ' a > ( & self , key : impl Into < & ' a BStr > ) -> Option < Cow < ' repo , BStr > > {
57
53
self . repo . config . resolved . string ( key. into ( ) )
58
54
}
59
55
60
56
/// Return the trusted and fully interpolated path at `key`, or `None` if there is no such value
61
57
/// or if no value was found in a trusted file.
62
58
/// An error occurs if the path could not be interpolated to its final value.
63
- #[ momo]
64
59
pub fn trusted_path < ' a > (
65
60
& self ,
66
61
key : impl Into < & ' a BStr > ,
@@ -70,7 +65,6 @@ impl<'repo> Snapshot<'repo> {
70
65
71
66
/// Return the trusted string at `key` for launching using [command::prepare()](gix_command::prepare()),
72
67
/// or `None` if there is no such value or if no value was found in a trusted file.
73
- #[ momo]
74
68
pub fn trusted_program < ' a > ( & self , key : impl Into < & ' a BStr > ) -> Option < Cow < ' repo , OsStr > > {
75
69
let value = self
76
70
. repo
@@ -120,7 +114,6 @@ impl<'repo> SnapshotMut<'repo> {
120
114
121
115
/// Set the value at `key` to `new_value`, possibly creating the section if it doesn't exist yet, or overriding the most recent existing
122
116
/// value, which will be returned.
123
- #[ momo]
124
117
pub fn set_value < ' b > (
125
118
& mut self ,
126
119
key : & ' static dyn crate :: config:: tree:: Key ,
@@ -144,7 +137,6 @@ impl<'repo> SnapshotMut<'repo> {
144
137
145
138
/// Set the value at `key` to `new_value` in the given `subsection`, possibly creating the section and sub-section if it doesn't exist yet,
146
139
/// or overriding the most recent existing value, which will be returned.
147
- #[ momo]
148
140
pub fn set_subsection_value < ' a , ' b > (
149
141
& mut self ,
150
142
key : & ' static dyn crate :: config:: tree:: Key ,
0 commit comments