Skip to content

Commit

Permalink
fix(ssg): 🐛 include the priority field with a lower priority value an…
Browse files Browse the repository at this point in the history
…d other fixes
  • Loading branch information
sebastienrousseau committed May 2, 2024
1 parent 8996465 commit 45da9c9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ meta_variable_misuse = "deny"
missing_fragment_specifier = "deny"
noop_method_call = "deny"
pointer_structural_match = "deny"
rust_2018_idioms = "deny"
rust_2021_compatibility = "deny"
rust_2018_idioms = { level = "deny", priority = -1 }
rust_2021_compatibility = { level = "deny", priority = -1 }
unused = { level = "deny", priority = -1 }
single_use_lifetimes = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unused = "deny"
unused_features = "deny"
unused_import_braces = "deny"
unused_labels = "deny"
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub fn build() -> Result<ArgMatches, Error> {
/// ```
pub fn print_banner() {
// Set the title and description for the CLI
let title = "Shokunin 🦀 (v0.0.29)";
let title = "Shokunin (ssg) 🦀 v0.0.29";
let description =
"A Fast and Flexible Static Site Generator written in Rust";

Expand Down
16 changes: 6 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,13 @@
//! [1]: https://github.github.com/gfm/ "GitHub Flavoured Markdown"
//! [2]: https://www.rust-lang.org/ "Rust"
//! [3]: https://shokunin.one/contribute/index.html "Contribute to Shokunin"

#![doc(
html_favicon_url = "https://kura.pro/shokunin/images/favicon.ico",
html_logo_url = "https://kura.pro/shokunin/images/logos/shokunin.svg",
html_root_url = "https://docs.rs/ssg"
)]
#![crate_name = "ssg"]
#![crate_type = "lib"]

use crate::{
compiler::service::compile, languages::translate,
loggers::init_logger, server::serve::start,
Expand All @@ -119,7 +117,12 @@ use crate::{
use cmd::cli::print_banner;
use dtt::DateTime;
use rlg::{log_format::LogFormat, log_level::LogLevel, macro_log};
use std::{error::Error, fs::File, io::{self, Write}, path::Path};
use std::{
error::Error,
fs::File,
io::{self, Write},
path::Path,
};

Check warning on line 125 in src/lib.rs

View check run for this annotation

Codecov / codecov/patch

src/lib.rs#L125

Added line #L125 was not covered by tests

/// The `cmd` module contains functions for the command-line interface.
pub mod cmd;
Expand Down Expand Up @@ -251,10 +254,3 @@ pub fn run() -> Result<(), Box<dyn Error>> {
fn create_log_file(file_path: &str) -> Result<File, io::Error> {
File::create(file_path)
}

// Log an event with a timestamp and message to the specified log file.
// fn log_event(log_file: &mut File, timestamp: &str, message: &str) -> Result<(), io::Error> {
// writeln!(log_file, "[{}] {}", timestamp, message)?;
// log_file.flush()?;
// Ok(())
// }

0 comments on commit 45da9c9

Please sign in to comment.