This commit is contained in:
Waffle 2019-11-27 18:13:20 +03:00
parent 7fea75f2d7
commit 4ae4539631
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
use std::{future::Future, pin::Pin};
#[cfg(not(feature = "never-type"))]
use std::convert::Infallible;
use std::{future::Future, pin::Pin};
use async_trait::async_trait;

View file

@ -14,14 +14,14 @@ impl InputFile {
pub fn url<T>(url: T) -> Self
where
T: Into<String>
T: Into<String>,
{
Self::Url(url.into())
}
pub fn file_id<T>(file_id: T) -> Self
where
T: Into<String>
T: Into<String>,
{
Self::FileId(file_id.into())
}