Skip to content

Commit 01a4227

Browse files
committed
quality: run cargo fmt
1 parent a317882 commit 01a4227

File tree

5 files changed

+31
-15
lines changed

5 files changed

+31
-15
lines changed

crates/spfs/src/graph/mod.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,17 @@ mod tree;
2020
use std::cell::RefCell;
2121

2222
pub use annotation::{
23-
Annotation, AnnotationValue, DEFAULT_SPFS_ANNOTATION_LAYER_MAX_STRING_VALUE_SIZE,
23+
Annotation,
24+
AnnotationValue,
25+
DEFAULT_SPFS_ANNOTATION_LAYER_MAX_STRING_VALUE_SIZE,
2426
};
2527
pub use blob::Blob;
2628
pub use database::{
27-
Database, DatabaseIterator, DatabaseView, DatabaseWalker, DigestSearchCriteria,
29+
Database,
30+
DatabaseIterator,
31+
DatabaseView,
32+
DatabaseWalker,
33+
DigestSearchCriteria,
2834
};
2935
pub use entry::Entry;
3036
pub use kind::{HasKind, Kind, ObjectKind};

crates/spfs/src/runtime/config_nu.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@
33
// https://github.com/spkenv/spk
44
// Warning Nushell version >=0.97
55

6-
76
pub fn source<T>(_tmpdir: Option<&T>) -> String
87
where
98
T: AsRef<str>,
10-
{
11-
r#"
9+
{
10+
r#"
1211
$env.config = {
1312
show_banner: false,
1413
}
1514
$env.SPFS_SHELL_MESSAGE? | print
1615
"#
17-
.to_string()
18-
}
19-
16+
.to_string()
17+
}

crates/spfs/src/runtime/env_nu.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
pub fn source<T>(_tmpdir: Option<&T>) -> String
77
where
88
T: AsRef<str>,
9-
{
10-
r#"
9+
{
10+
r#"
1111
def create_left_prompt [] {
1212
let dir = match (do --ignore-shell-errors { $env.PWD | path relative-to $nu.home-path }) {
1313
null => $env.PWD
@@ -75,5 +75,4 @@ where
7575
$env.NU_VENDOR_AUTOLOAD_DIR = ($spfs_startup_dir)
7676
"#
7777
.to_string()
78-
}
79-
78+
}

crates/spfs/src/runtime/mod.rs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,21 @@ pub mod winfsp;
2121
#[cfg(unix)]
2222
pub use overlayfs::is_removed_entry;
2323
pub use storage::{
24-
makedirs_with_perms, Author, BindMount, Config, Data, KeyValuePair, KeyValuePairBuf, LiveLayer,
25-
LiveLayerFile, MountBackend, OwnedRuntime, Runtime, Status, Storage, STARTUP_FILES_LOCATION,
24+
makedirs_with_perms,
25+
Author,
26+
BindMount,
27+
Config,
28+
Data,
29+
KeyValuePair,
30+
KeyValuePairBuf,
31+
LiveLayer,
32+
LiveLayerFile,
33+
MountBackend,
34+
OwnedRuntime,
35+
Runtime,
36+
Status,
37+
Storage,
38+
STARTUP_FILES_LOCATION,
2639
};
2740
#[cfg(windows)]
2841
pub use winfsp::is_removed_entry;

crates/spfs/src/runtime/storage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ use tokio::io::AsyncReadExt;
2626

2727
#[cfg(windows)]
2828
use super::startup_ps;
29+
use super::{config_nu, env_nu};
2930
#[cfg(unix)]
3031
use super::{startup_csh, startup_sh};
31-
use super::{config_nu, env_nu};
3232
use crate::encoding::Digest;
3333
use crate::env::SPFS_DIR_PREFIX;
3434
use crate::graph::object::Enum;

0 commit comments

Comments
 (0)