Skip to content

Commit

Permalink
Format Rust code using rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Nov 19, 2023
1 parent 726852e commit a6467d9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion crates/cli/src/compile/tailwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ async fn create_default_tailwind_config(tw_conf: &TailwindConfig) -> Result<()>
pub async fn tailwind_process(cmd: &str, tw_conf: &TailwindConfig) -> Result<(String, Command)> {
let tailwind = Exe::Tailwind.get().await.dot()?;

let args: Vec<&str> = vec!["--input", tw_conf.input_file.as_str(), "--output", tw_conf.output_file.as_str(), "--config", tw_conf.config_file.as_str()];
let args: Vec<&str> = vec![
"--input",
tw_conf.input_file.as_str(),
"--output",
tw_conf.output_file.as_str(),
"--config",
tw_conf.config_file.as_str(),
];
let line = format!("{} {}", cmd, args.join(" "));
let mut command = Command::new(tailwind);
command.args(args);
Expand Down
2 changes: 1 addition & 1 deletion crates/core/src/web/events/csr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ impl<E: FromWasmAbi> Custom<E> {
/// Creates a custom event type, this is equal to [`Custom::new`].
pub fn custom<E: FromWasmAbi + 'static>(name: impl Into<Cow<'static, str>>) -> Custom<E> {
Custom::new(name)
}
}
2 changes: 1 addition & 1 deletion crates/core/src/web/events/ssr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ impl<E> Custom<E> {
/// Creates a custom event type, this is equal to [`Custom::new`].
pub fn custom<E: 'static>(name: impl Into<Cow<'static, str>>) -> Custom<E> {
Custom::new(name)
}
}

0 comments on commit a6467d9

Please sign in to comment.