@@ -3,7 +3,6 @@ use std::borrow::Cow;
33use std:: ffi:: OsStr ;
44
55use gix_features:: threading:: OwnShared ;
6- use gix_macros:: momo;
76
87use crate :: bstr:: ByteSlice ;
98use crate :: {
@@ -28,7 +27,6 @@ impl<'repo> Snapshot<'repo> {
2827 }
2928
3029 /// Like [`boolean()`][Self::boolean()], but it will report an error if the value couldn't be interpreted as boolean.
31- #[ momo]
3230 pub fn try_boolean < ' a > ( & self , key : impl Into < & ' a BStr > ) -> Option < Result < bool , gix_config:: value:: Error > > {
3331 self . repo . config . resolved . boolean ( key. into ( ) )
3432 }
@@ -44,23 +42,20 @@ impl<'repo> Snapshot<'repo> {
4442 }
4543
4644 /// Like [`integer()`][Self::integer()], but it will report an error if the value couldn't be interpreted as boolean.
47- #[ momo]
4845 pub fn try_integer < ' a > ( & self , key : impl Into < & ' a BStr > ) -> Option < Result < i64 , gix_config:: value:: Error > > {
4946 self . repo . config . resolved . integer ( key. into ( ) )
5047 }
5148
5249 /// Return the string at `key`, or `None` if there is no such value.
5350 ///
5451 /// Note that this method takes the most recent value at `key` even if it is from a file with reduced trust.
55- #[ momo]
5652 pub fn string < ' a > ( & self , key : impl Into < & ' a BStr > ) -> Option < Cow < ' repo , BStr > > {
5753 self . repo . config . resolved . string ( key. into ( ) )
5854 }
5955
6056 /// Return the trusted and fully interpolated path at `key`, or `None` if there is no such value
6157 /// or if no value was found in a trusted file.
6258 /// An error occurs if the path could not be interpolated to its final value.
63- #[ momo]
6459 pub fn trusted_path < ' a > (
6560 & self ,
6661 key : impl Into < & ' a BStr > ,
@@ -70,7 +65,6 @@ impl<'repo> Snapshot<'repo> {
7065
7166 /// Return the trusted string at `key` for launching using [command::prepare()](gix_command::prepare()),
7267 /// or `None` if there is no such value or if no value was found in a trusted file.
73- #[ momo]
7468 pub fn trusted_program < ' a > ( & self , key : impl Into < & ' a BStr > ) -> Option < Cow < ' repo , OsStr > > {
7569 let value = self
7670 . repo
@@ -120,7 +114,6 @@ impl<'repo> SnapshotMut<'repo> {
120114
121115 /// Set the value at `key` to `new_value`, possibly creating the section if it doesn't exist yet, or overriding the most recent existing
122116 /// value, which will be returned.
123- #[ momo]
124117 pub fn set_value < ' b > (
125118 & mut self ,
126119 key : & ' static dyn crate :: config:: tree:: Key ,
@@ -144,7 +137,6 @@ impl<'repo> SnapshotMut<'repo> {
144137
145138 /// 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,
146139 /// or overriding the most recent existing value, which will be returned.
147- #[ momo]
148140 pub fn set_subsection_value < ' a , ' b > (
149141 & mut self ,
150142 key : & ' static dyn crate :: config:: tree:: Key ,
0 commit comments