Skip to content

Commit

Permalink
style: cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Oct 5, 2024
1 parent 236ea85 commit c9e8292
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion crates/backend/src/opendal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ use std::{collections::HashMap, path::PathBuf, str::FromStr, sync::OnceLock};
use anyhow::{anyhow, Error, Result};
use bytes::Bytes;
use bytesize::ByteSize;
use tracing::trace;
use opendal::{
layers::{BlockingLayer, ConcurrentLimitLayer, LoggingLayer, RetryLayer, ThrottleLayer},
BlockingOperator, ErrorKind, Metakey, Operator, Scheme,
};
use rayon::prelude::{IntoParallelIterator, ParallelIterator};
use tokio::runtime::Runtime;
use tracing::trace;

use rustic_core::{FileType, Id, ReadBackend, WriteBackend, ALL_FILE_TYPES};

Expand Down
2 changes: 1 addition & 1 deletion crates/backend/src/rclone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ use std::{
use anyhow::Result;
use bytes::Bytes;
use constants::DEFAULT_COMMAND;
use tracing::{debug, info};
use rand::{
distributions::{Alphanumeric, DistString},
thread_rng,
};
use semver::{BuildMetadata, Prerelease, Version, VersionReq};
use tracing::{debug, info};

use crate::{error::RcloneErrorKind, rest::RestBackend};

Expand Down
2 changes: 1 addition & 1 deletion crates/backend/src/rest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ use std::time::Duration;
use anyhow::Result;
use backoff::{backoff::Backoff, ExponentialBackoff, ExponentialBackoffBuilder};
use bytes::Bytes;
use tracing::{trace, warn};
use reqwest::{
blocking::{Client, ClientBuilder, Response},
header::{HeaderMap, HeaderValue},
Url,
};
use serde::Deserialize;
use tracing::{trace, warn};

use crate::error::RestErrorKind;

Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/archiver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ pub(crate) mod tree_archiver;
use std::path::{Path, PathBuf};

use chrono::Local;
use tracing::warn;
use pariter::{scope, IteratorExt};
use tracing::warn;

use crate::{
archiver::{
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/backend/ignore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ use chrono::TimeZone;
use chrono::{DateTime, Local, Utc};
use derive_setters::Setters;
use ignore::{overrides::OverrideBuilder, DirEntry, Walk, WalkBuilder};
use tracing::warn;
#[cfg(not(windows))]
use nix::unistd::{Gid, Group, Uid, User};
use tracing::warn;

#[cfg(not(windows))]
use crate::backend::node::ExtendedAttribute;
Expand Down
4 changes: 2 additions & 2 deletions crates/core/src/backend/local_destination.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ use bytes::Bytes;
use cached::proc_macro::cached;
use filetime::{set_symlink_file_times, FileTime};
#[cfg(not(windows))]
use tracing::warn;
#[cfg(not(windows))]
use nix::sys::stat::{mknod, Mode, SFlag};
#[cfg(not(windows))]
use nix::{
fcntl::AtFlags,
unistd::{fchownat, Gid, Group, Uid, User},
};
#[cfg(not(windows))]
use tracing::warn;

#[cfg(not(windows))]
use crate::backend::ignore::mapper::map_mode_from_go;
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/commands/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ use std::{
use bytes::Bytes;
use bytesize::ByteSize;
use derive_setters::Setters;
use tracing::{debug, error, warn};
use rand::{prelude::SliceRandom, thread_rng, Rng};
use rayon::prelude::{IntoParallelIterator, ParallelIterator};
use tracing::{debug, error, warn};
use zstd::stream::decode_all;

use crate::{
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/commands/copy.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::collections::BTreeSet;

use tracing::trace;
use rayon::prelude::{IntoParallelRefIterator, ParallelBridge, ParallelIterator};
use tracing::trace;

use crate::{
backend::{decrypt::DecryptWriteBackend, node::NodeType},
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/commands/prune.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ use derive_more::Add;
use derive_setters::Setters;
use enumset::{EnumSet, EnumSetType};
use itertools::Itertools;
use tracing::{info, warn};
use rayon::prelude::{IntoParallelIterator, ParallelIterator};
use serde::{Deserialize, Serialize};
use tracing::{info, warn};

use crate::{
backend::{
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/repofile/snapshotfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ use derive_setters::Setters;
use dunce::canonicalize;
use gethostname::gethostname;
use itertools::Itertools;
use tracing::info;
use path_dedot::ParseDot;
use serde_derive::{Deserialize, Serialize};
use serde_with::{serde_as, skip_serializing_none, DisplayFromStr};
use tracing::info;

use crate::{
backend::{decrypt::DecryptReadBackend, FileType, FindInBackend},
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/repository/command_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use std::{
str::FromStr,
};

use tracing::{debug, error, trace, warn};
use serde::{Deserialize, Serialize, Serializer};
use serde_with::{serde_as, DisplayFromStr, PickFirst};
use tracing::{debug, error, trace, warn};

use crate::{
error::{RepositoryErrorKind, RusticErrorKind},
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/repository/warm_up.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use std::process::Command;
use std::thread::sleep;

use tracing::{debug, error, warn};
use rayon::ThreadPoolBuilder;
use tracing::{debug, error, warn};

use crate::{
backend::{FileType, ReadBackend},
Expand Down

0 comments on commit c9e8292

Please sign in to comment.