mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 19:18:50 +00:00
Clippy without features.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
use crate::{Cache, Repo, NAME, VERSION};
|
||||
use crate::{Cache, Repo};
|
||||
use fs2::FileExt;
|
||||
use indicatif::{ProgressBar, ProgressStyle};
|
||||
use rand::{distributions::Alphanumeric, thread_rng, Rng};
|
||||
@ -18,6 +18,11 @@ use thiserror::Error;
|
||||
use tokio::io::{AsyncSeekExt, AsyncWriteExt, SeekFrom};
|
||||
use tokio::sync::{AcquireError, Semaphore, TryAcquireError};
|
||||
|
||||
/// Current version (used in user-agent)
|
||||
const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
/// Current name (used in user-agent)
|
||||
const NAME: &str = env!("CARGO_PKG_NAME");
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
/// All errors the API can throw
|
||||
pub enum ApiError {
|
||||
|
Reference in New Issue
Block a user