From 967d4af8430f0c3be6ad5a5ec240c073a9d54320 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 19 May 2017 02:58:18 +0100 Subject: [PATCH] rsm: Rename First id to make it more explicit. --- src/rsm.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rsm.rs b/src/rsm.rs index 4caab080..6a16d385 100644 --- a/src/rsm.rs +++ b/src/rsm.rs @@ -15,7 +15,7 @@ use ns; #[derive(Debug, Clone)] pub struct First { pub index: Option, - pub base: String, + pub id: String, } #[derive(Debug, Clone)] @@ -68,7 +68,7 @@ impl<'a> TryFrom<&'a Element> for Set { Some(index) => Some(index.parse()?), None => None, }, - base: child.text(), + id: child.text(), }); } else if child.is("index", ns::RSM) { if index.is_some() { @@ -123,7 +123,7 @@ impl<'a> Into for &'a Set { Some(index) => Some(format!("{}", index)), None => None, }) - .append(first.base.clone()).build()); + .append(first.id.clone()).build()); } if self.index.is_some() { elem.append_child(Element::builder("index").ns(ns::RSM).append(format!("{}", self.index.unwrap())).build());