mirror of
https://codeberg.org/icewind/php-literal-parser.git
synced 2026-06-03 18:44:07 +02:00
clippy fixes
This commit is contained in:
parent
c9e16c49a4
commit
ccfc33d8cb
4 changed files with 8 additions and 8 deletions
|
|
@ -257,7 +257,7 @@ impl<'source> ExpectToken<'source> for Option<SpannedToken<'source>> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, 'source> ExpectToken<'source> for Option<&'a SpannedToken<'source>> {
|
||||
impl<'source> ExpectToken<'source> for Option<&'_ SpannedToken<'source>> {
|
||||
fn expect_token(
|
||||
self,
|
||||
expected: &[Token],
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ impl<'source> SpannedToken<'source> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'source> Debug for SpannedToken<'source> {
|
||||
impl Debug for SpannedToken<'_> {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
|
||||
write!(
|
||||
f,
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ impl<'de> Deserializer<'de> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'de, 'a> de::Deserializer<'de> for &'a mut Deserializer<'de> {
|
||||
impl<'de> de::Deserializer<'de> for &mut Deserializer<'de> {
|
||||
type Error = ParseError;
|
||||
|
||||
fn deserialize_any<V>(self, visitor: V) -> Result<V::Value>
|
||||
|
|
@ -493,7 +493,7 @@ impl<'source, 'a> ArrayWalker<'source, 'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'de, 'a> SeqAccess<'de> for ArrayWalker<'de, 'a> {
|
||||
impl<'de> SeqAccess<'de> for ArrayWalker<'de, '_> {
|
||||
type Error = ParseError;
|
||||
|
||||
fn next_element_seed<T>(&mut self, seed: T) -> Result<Option<T::Value>>
|
||||
|
|
@ -581,7 +581,7 @@ impl<'de, 'a> SeqAccess<'de> for ArrayWalker<'de, 'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'de, 'a> MapAccess<'de> for ArrayWalker<'de, 'a> {
|
||||
impl<'de> MapAccess<'de> for ArrayWalker<'de, '_> {
|
||||
type Error = ParseError;
|
||||
|
||||
fn next_key_seed<K>(&mut self, seed: K) -> Result<Option<K::Value>>
|
||||
|
|
@ -706,7 +706,7 @@ impl<'a, 'de> Enum<'a, 'de> {
|
|||
//
|
||||
// Note that all enum deserialization methods in Serde refer exclusively to the
|
||||
// "externally tagged" enum representation.
|
||||
impl<'de, 'a> EnumAccess<'de> for Enum<'a, 'de> {
|
||||
impl<'de> EnumAccess<'de> for Enum<'_, 'de> {
|
||||
type Error = ParseError;
|
||||
type Variant = Self;
|
||||
|
||||
|
|
@ -724,7 +724,7 @@ impl<'de, 'a> EnumAccess<'de> for Enum<'a, 'de> {
|
|||
|
||||
// `VariantAccess` is provided to the `Visitor` to give it the ability to see
|
||||
// the content of the single variant that it decided to deserialize.
|
||||
impl<'de, 'a> VariantAccess<'de> for Enum<'a, 'de> {
|
||||
impl<'de> VariantAccess<'de> for Enum<'_, 'de> {
|
||||
type Error = ParseError;
|
||||
|
||||
fn unit_variant(self) -> Result<()> {
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ struct PeekableBytes<'a> {
|
|||
pos: usize,
|
||||
}
|
||||
|
||||
impl<'a> Iterator for PeekableBytes<'a> {
|
||||
impl Iterator for PeekableBytes<'_> {
|
||||
type Item = u8;
|
||||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue