diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 017a3900..1a524d25 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: platform: [ubuntu-latest, macos-latest, windows-latest] - toolchain: [stable, 1.64.0] + toolchain: [stable, 1.76.0] runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v3 @@ -60,7 +60,7 @@ jobs: - name: Setup mdBook uses: peaceiris/actions-mdbook@v1 with: - mdbook-version: '0.4.4' + mdbook-version: '0.4.37' - name: Setup toolchain uses: dtolnay/rust-toolchain@master with: diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index dafba802..81577e82 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -14,7 +14,7 @@ jobs: - name: Setup mdBook uses: peaceiris/actions-mdbook@v1 with: - mdbook-version: '0.4.4' + mdbook-version: '0.4.37' - run: cd docs && mdbook build diff --git a/src/main.rs b/src/main.rs index b4290974..45f35e51 100644 --- a/src/main.rs +++ b/src/main.rs @@ -152,10 +152,12 @@ fn show_paths(config: &Config) { |e| format!("[Error: {e}]"), |(mut path, source)| { path.push(""); // Trailing path separator - path.to_str().map_or_else(|| { - "[Invalid]".to_string() - }, |path| format!("{path} ({source})")) - }); + path.to_str().map_or_else( + || "[Invalid]".to_string(), + |path| format!("{path} ({source})"), + ) + }, + ); let config_path = get_config_path().map_or_else( |e| format!("[Error: {e}]"), |(path, _)| path.display().to_string(), @@ -167,9 +169,10 @@ fn show_paths(config: &Config) { path.push(""); // Trailing path separator path.display().to_string() }; - let custom_pages_dir = config.directories.custom_pages_dir.as_ref().map_or_else(||{ - "[None]".to_string() - }, |ref path_with_source| path_with_source.to_string()); + let custom_pages_dir = config.directories.custom_pages_dir.as_ref().map_or_else( + || "[None]".to_string(), + |ref path_with_source| path_with_source.to_string(), + ); println!("Config dir: {config_dir}"); println!("Config path: {config_path}");