Skip to content

Commit

Permalink
.map(|t| t.clone()) -> .cloned()
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Feb 18, 2015
1 parent fbbb530 commit 044f690
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -47,6 +47,6 @@ static KEYWORDS: phf::Map<&'static str, Keyword> = phf_map! {
};

pub fn parse_keyword(keyword: &str) -> Option<Keyword> {
KEYWORDS.get(keyword).map(|t| t.clone())
KEYWORDS.get(keyword).cloned()
}
```
2 changes: 1 addition & 1 deletion phf/src/lib.rs
Expand Up @@ -29,7 +29,7 @@
//! };
//!
//! pub fn parse_keyword(keyword: &str) -> Option<Keyword> {
//! KEYWORDS.get(keyword).map(|t| t.clone())
//! KEYWORDS.get(keyword).cloned()
//! }
//! # fn main() {}
//! ```
Expand Down

0 comments on commit 044f690

Please sign in to comment.