mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
fix clippy
This commit is contained in:
parent
ef33f9f66a
commit
bc440b9ea8
1 changed files with 2 additions and 4 deletions
|
@ -207,7 +207,7 @@ impl InputFile {
|
|||
pub(crate) fn into_part(mut self) -> Option<impl Future<Output = Part>> {
|
||||
let filename = self.take_or_guess_filename();
|
||||
|
||||
let file_part = match self.inner {
|
||||
match self.inner {
|
||||
// Url and FileId are serialized just as strings, they don't need additional parts
|
||||
Url(_) | FileId(_) => None,
|
||||
|
||||
|
@ -236,9 +236,7 @@ impl InputFile {
|
|||
Some(Either::Right(Either::Left(ready(stream))))
|
||||
}
|
||||
Read(read) => Some(Either::Right(Either::Right(read.into_part(filename)))),
|
||||
};
|
||||
|
||||
file_part
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue