Skip to content

Commit ecc42af

Browse files
committed
fix: Formatting
1 parent 1cbb0b2 commit ecc42af

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

crates/config/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ impl Config {
130130
for repo in &self.repositories {
131131
for runtime in &repo.runtimes {
132132
for ext in &runtime.extensions {
133-
if check_runtime(project_root, &repo.name, runtime) && !extensions.contains(ext) {
133+
if check_runtime(project_root, &repo.name, runtime) && !extensions.contains(ext)
134+
{
134135
extensions.push(ext.clone());
135136
}
136137
}

crates/router/src/files.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ impl Files {
4444
return include_pattern
4545
.walk(&self.root)
4646
.not(self.ignore_patterns.iter().map(|s| s.as_str()))
47-
.expect("Failed to parse ignore patterns when processing files in the current directory")
48-
.map(|e| e.unwrap()).collect();
47+
.expect(
48+
"Failed to parse ignore patterns when processing files in the current directory",
49+
)
50+
.map(|e| e.unwrap())
51+
.collect();
4952
}
5053

5154
fn construct_include_pattern(file_extensions: Vec<String>) -> String {

crates/router/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ impl Routes {
2424
/// Initialize the list of routes from the given folder. This method will look for
2525
/// different files and will create the associated routes. This routing approach
2626
/// is pretty popular in web development and static sites.
27-
pub fn new(path: &Path, base_prefix: &str, ignore_patterns: Vec<String>, config: &Config) -> Self {
27+
pub fn new(
28+
path: &Path,
29+
base_prefix: &str,
30+
ignore_patterns: Vec<String>,
31+
config: &Config,
32+
) -> Self {
2833
let mut routes = Vec::new();
2934
let prefix = Self::format_prefix(base_prefix);
3035
let runtime_extensions = config.get_runtime_extensions(path);

0 commit comments

Comments
 (0)