import: Switch to tokio channels

This commit is contained in:
Elias Projahn 2021-03-28 16:46:15 +02:00
parent 2922c17a86
commit e43486367b
3 changed files with 4 additions and 4 deletions

View file

@ -62,8 +62,8 @@ impl Error {
}
}
impl From<futures_channel::oneshot::Canceled> for Error {
fn from(err: futures_channel::oneshot::Canceled) -> Self {
impl From<tokio::sync::oneshot::error::RecvError> for Error {
fn from(err: tokio::sync::oneshot::error::RecvError) -> Self {
Self::us(err)
}
}

View file

@ -1,9 +1,9 @@
use crate::{disc, folder};
use crate::error::Result;
use futures_channel::oneshot;
use std::path::PathBuf;
use std::thread;
use std::sync::Arc;
use tokio::sync::oneshot;
/// Interface for importing audio tracks from a medium or folder.
pub struct ImportSession {