cleanup: remove unnecessary 'mut' and '.clone()'
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
@ -305,7 +305,7 @@ async fn backup_directory<P: AsRef<Path>>(
|
||||
)?;
|
||||
let mut chunk_stream = ChunkStream::new(pxar_stream, chunk_size);
|
||||
|
||||
let (mut tx, rx) = mpsc::channel(10); // allow to buffer 10 chunks
|
||||
let (tx, rx) = mpsc::channel(10); // allow to buffer 10 chunks
|
||||
|
||||
let stream = ReceiverStream::new(rx)
|
||||
.map_err(Error::from);
|
||||
|
@ -164,7 +164,7 @@ async fn run() -> Result<(), Error> {
|
||||
}
|
||||
|
||||
fn accept_connections(
|
||||
mut listener: tokio::net::TcpListener,
|
||||
listener: tokio::net::TcpListener,
|
||||
acceptor: Arc<openssl::ssl::SslAcceptor>,
|
||||
debug: bool,
|
||||
) -> tokio::sync::mpsc::Receiver<Result<std::pin::Pin<Box<tokio_openssl::SslStream<tokio::net::TcpStream>>>, Error>> {
|
||||
|
@ -294,7 +294,7 @@ async fn mount_do(param: Value, pipe: Option<Fd>) -> Result<Value, Error> {
|
||||
|
||||
// poll until loop file is mapped (or errors)
|
||||
select! {
|
||||
res = session_fut => {
|
||||
_res = session_fut => {
|
||||
bail!("FUSE session unexpectedly ended before loop file mapping");
|
||||
},
|
||||
res = st_recv.try_next() => {
|
||||
|
Reference in New Issue
Block a user