Skip to content

Commit

Permalink
Make the Suggestions::{as_vec, join} methods public (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
daggy1234 committed Mar 23, 2021
1 parent 3088652 commit 4186996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework/standard/help_commands.rs
Expand Up @@ -156,12 +156,12 @@ pub struct Suggestions(pub Vec<SuggestedCommandName>);
impl Suggestions {
/// Immutably borrow inner `Vec`.
#[inline]
fn as_vec(&self) -> &Vec<SuggestedCommandName> {
pub fn as_vec(&self) -> &Vec<SuggestedCommandName> {
&self.0
}

/// Concats names of suggestions with a given `separator`.
fn join(&self, separator: &str) -> String {
pub fn join(&self, separator: &str) -> String {
let mut iter = self.as_vec().iter();

let first_iter_element = match iter.next() {
Expand Down

0 comments on commit 4186996

Please sign in to comment.