Skip to content

Commit

Permalink
Change to &mut Vec
Browse files Browse the repository at this point in the history
  • Loading branch information
leshow authored and bluejekyll committed May 20, 2020
1 parent 507b14e commit 5bd074b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/proto/src/op/message.rs
Expand Up @@ -407,7 +407,7 @@ impl Message {
}

/// Provides mutable access to `queries`
pub fn queries_mut(&mut self) -> &mut [Query] {
pub fn queries_mut(&mut self) -> &mut Vec<Query> {
&mut self.queries
}

Expand All @@ -419,7 +419,7 @@ impl Message {
}

/// Provides mutable access to `answers`
pub fn answers_mut(&mut self) -> &mut [Record] {
pub fn answers_mut(&mut self) -> &mut Vec<Record> {
&mut self.answers
}

Expand All @@ -438,7 +438,7 @@ impl Message {
}

/// Provides mutable access to `name_servers`
pub fn name_servers_mut(&mut self) -> &mut [Record] {
pub fn name_servers_mut(&mut self) -> &mut Vec<Record> {
&mut self.name_servers
}

Expand All @@ -456,7 +456,7 @@ impl Message {
}

/// Provides mutable access to `additionals`
pub fn additionals_mut(&mut self) -> &mut [Record] {
pub fn additionals_mut(&mut self) -> &mut Vec<Record> {
&mut self.additionals
}

Expand Down

0 comments on commit 5bd074b

Please sign in to comment.