Rename JSON::unwrap() to JSON::into_inner().

This commit is contained in:
Sergio Benitez 2017-01-15 03:00:46 -08:00
parent c6f8b251cb
commit b164da1a01
1 changed files with 2 additions and 2 deletions

View File

@ -58,9 +58,9 @@ impl<T> JSON<T> {
/// # use rocket_contrib::JSON;
/// let string = "Hello".to_string();
/// let my_json = JSON(string);
/// assert_eq!(my_json.unwrap(), "Hello".to_string());
/// assert_eq!(my_json.into_inner(), "Hello".to_string());
/// ```
pub fn unwrap(self) -> T {
pub fn into_inner(self) -> T {
self.0
}
}