Skip to content

Commit 90fd39c

Browse files
committed
Make clippy happy
1 parent 29b8ac9 commit 90fd39c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/de.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ pub struct Deserializer<'de> {
2020
}
2121

2222
/// Parse a Corn configuration string into a borrowed value.
23-
pub fn parse(input: &str) -> Result<BorrowedValue> {
23+
pub fn parse(input: &str) -> Result<BorrowedValue<'_>> {
2424
Deserializer::parse(input)
2525
}
2626

2727
impl<'de> Deserializer<'de> {
2828
/// Parse a Corn configuration string into a borrowed value.
29-
pub fn parse(input: &str) -> Result<BorrowedValue> {
29+
pub fn parse(input: &str) -> Result<BorrowedValue<'_>> {
3030
let mut lexer = Lexer::new(input);
3131
let parser = RootParser::new();
3232
let Root { inputs, object } = parser
@@ -85,7 +85,7 @@ impl<'de> Deserializer<'de> {
8585
for pair_or_spread in &obj.pairs {
8686
match pair_or_spread {
8787
PairOrSpread::Pair(key, value) => {
88-
fn unescape_key(key: &str) -> Cow<str> {
88+
fn unescape_key(key: &str) -> Cow<'_, str> {
8989
if key.contains("\\'") {
9090
Cow::Owned(key.replace("\\'", "'"))
9191
} else {

0 commit comments

Comments
 (0)