aboutsummaryrefslogtreecommitdiffstats
path: root/src/stanza/stream.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stanza/stream.rs')
-rw-r--r--src/stanza/stream.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/stanza/stream.rs b/src/stanza/stream.rs
index 4516682..a5201dc 100644
--- a/src/stanza/stream.rs
+++ b/src/stanza/stream.rs
@@ -62,12 +62,12 @@ impl FromElement for Stream {
impl IntoElement for Stream {
fn into_element(&self) -> Element {
- let mut namespace_declarations = HashSet::new();
- namespace_declarations.insert(NamespaceDeclaration {
+ let mut namespace_declaration_overrides = HashSet::new();
+ namespace_declaration_overrides.insert(NamespaceDeclaration {
prefix: Some("stream".to_string()),
namespace: XMLNS.to_string(),
});
- namespace_declarations.insert(NamespaceDeclaration {
+ namespace_declaration_overrides.insert(NamespaceDeclaration {
prefix: None,
// TODO: don't default to client
namespace: XMLNS_CLIENT.to_string(),
@@ -125,7 +125,7 @@ impl IntoElement for Stream {
namespace: Some(XMLNS.to_string()),
local_name: "stream".to_string(),
},
- namespace_declarations,
+ namespace_declaration_overrides,
attributes,
content: Vec::new(),
}
@@ -185,7 +185,7 @@ impl IntoElement for Features {
namespace: Some(XMLNS.to_string()),
local_name: "features".to_string(),
},
- namespace_declarations: HashSet::new(),
+ namespace_declaration_overrides: HashSet::new(),
attributes: HashMap::new(),
content,
}