mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
fmt
This commit is contained in:
parent
7fea75f2d7
commit
4ae4539631
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
use std::{future::Future, pin::Pin};
|
|
||||||
#[cfg(not(feature = "never-type"))]
|
#[cfg(not(feature = "never-type"))]
|
||||||
use std::convert::Infallible;
|
use std::convert::Infallible;
|
||||||
|
use std::{future::Future, pin::Pin};
|
||||||
|
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
|
|
||||||
|
|
|
@ -14,14 +14,14 @@ impl InputFile {
|
||||||
|
|
||||||
pub fn url<T>(url: T) -> Self
|
pub fn url<T>(url: T) -> Self
|
||||||
where
|
where
|
||||||
T: Into<String>
|
T: Into<String>,
|
||||||
{
|
{
|
||||||
Self::Url(url.into())
|
Self::Url(url.into())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn file_id<T>(file_id: T) -> Self
|
pub fn file_id<T>(file_id: T) -> Self
|
||||||
where
|
where
|
||||||
T: Into<String>
|
T: Into<String>,
|
||||||
{
|
{
|
||||||
Self::FileId(file_id.into())
|
Self::FileId(file_id.into())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue