Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rossmacarthur committed Oct 3, 2022
1 parent c5bf098 commit 4e79cf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn main() -> io::Result<()> {
io::stdin().read_to_string(&mut buf)?;
buf
};
replace(&*stdin, BufWriter::new(io::stdout()))
replace(&stdin, BufWriter::new(io::stdout()))
}

fn replace(mut s: &str, mut o: impl Write) -> io::Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion generate/src/unicode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl Emoji {
let skin_tones: Vec<_> = emoji
.chars()
.filter_map(|c| {
SkinTone::tones().find_map(|tone| (tone.code_point() == c).then(|| tone))
SkinTone::tones().find_map(|tone| (tone.code_point() == c).then_some(tone))
})
.collect();

Expand Down

0 comments on commit 4e79cf3

Please sign in to comment.