summaryrefslogtreecommitdiffstats
path: root/vendor/gix/src/remote/save.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix/src/remote/save.rs')
-rw-r--r--vendor/gix/src/remote/save.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/gix/src/remote/save.rs b/vendor/gix/src/remote/save.rs
index 0e347551e..ad6a75b14 100644
--- a/vendor/gix/src/remote/save.rs
+++ b/vendor/gix/src/remote/save.rs
@@ -32,6 +32,7 @@ impl Remote<'_> {
/// Note that all sections named `remote "<name>"` will be cleared of all values we are about to write,
/// and the last `remote "<name>"` section will be containing all relevant values so that reloading the remote
/// from `config` would yield the same in-memory state.
+ #[allow(clippy::result_large_err)]
pub fn save_to(&self, config: &mut gix_config::File<'static>) -> Result<(), Error> {
fn as_key(name: &str) -> gix_config::parse::section::Key<'_> {
name.try_into().expect("valid")
@@ -109,6 +110,7 @@ impl Remote<'_> {
/// Note that this sets a name for anonymous remotes, but overwrites the name for those who were named before.
/// If this name is different from the current one, the git configuration will still contain the previous name,
/// and the caller should account for that.
+ #[allow(clippy::result_large_err)]
pub fn save_as_to(
&mut self,
name: impl Into<BString>,