From 71805bb7ec2cb0da50cc36783146c3cae0fd4bef Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 14 Jan 2020 13:20:13 +0100 Subject: [PATCH] src/api2/config/remotes.rs: fix variable name -> s/remote/id/ --- src/section_config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/section_config.rs b/src/section_config.rs index 50fd81cc..0bee518e 100644 --- a/src/section_config.rs +++ b/src/section_config.rs @@ -61,17 +61,17 @@ impl SectionConfigData { Ok(()) } - pub fn lookup(&self, type_name: &str, remote: &str) -> Result { + pub fn lookup(&self, type_name: &str, id: &str) -> Result { - let config = match self.sections.get(remote) { + let config = match self.sections.get(id) { Some((section_type_name, config)) => { if type_name != section_type_name { - bail!("got unexpected type '{}' for {} '{}'", section_type_name, type_name, remote); + bail!("got unexpected type '{}' for {} '{}'", section_type_name, type_name, id); } config } None => { - bail!("no such {} '{}'", type_name, remote); + bail!("no such {} '{}'", type_name, id); } };