Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
clippy 0.1.78 no longer likes using multiple locations for trait
bounds (lint `multiple_bound_locations`).
  • Loading branch information
Andreas Rottmann committed May 31, 2024
1 parent 5a381de commit e7eacad
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 112 deletions.
8 changes: 4 additions & 4 deletions lexpr/src/parse/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,13 @@ impl<'a> SliceRead<'a> {
position
}

fn parse_symbol_bytes<'s, T: ?Sized, F>(
fn parse_symbol_bytes<'s, T, F>(
&'s mut self,
scratch: &'s mut Vec<u8>,
result: F,
) -> Result<Reference<'a, 's, T>>
where
T: 's,
T: ?Sized + 's,
F: for<'f> FnOnce(&'s Self, &'f [u8]) -> Result<&'f T>,
{
// Index of the first byte not yet copied into the scratch space.
Expand Down Expand Up @@ -486,13 +486,13 @@ impl<'a> SliceRead<'a> {
/// The big optimization here over IoRead is that if the string contains no
/// backslash escape sequences, the returned &str is a slice of the raw
/// S-expression data so we avoid copying into the scratch space.
fn parse_r6rs_str_bytes<'s, T: ?Sized, F>(
fn parse_r6rs_str_bytes<'s, T, F>(
&'s mut self,
scratch: &'s mut Vec<u8>,
result: F,
) -> Result<Reference<'a, 's, T>>
where
T: 's,
T: ?Sized + 's,
F: for<'f> FnOnce(&'s Self, &'f [u8]) -> Result<&'f T>,
{
// Index of the first byte not yet copied into the scratch space.
Expand Down
Loading

0 comments on commit e7eacad

Please sign in to comment.