fix: clippy

This commit is contained in:
Jonathan Kelley committed 2024-11-01 15:55:35 -07:00
1 parent 4a7f669245
commit aa9216d34c
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -287,7 +287,7 @@ impl AppBundle {
///
/// It's not guaranteed that they're different from any other folder
fn prepare_build_dir(&self) -> Result<()> {
_ = std::fs::remove_dir_all(&self.app_dir());
_ = std::fs::remove_dir_all(self.app_dir());
create_dir_all(self.app_dir())?;
create_dir_all(self.exe_dir())?;
@@ -742,7 +742,7 @@ impl AppBundle {
.context("Failed to find server executable")?,
)
.env(dioxus_cli_config::SERVER_PORT_ENV, PORT.to_string())
.env(dioxus_cli_config::SERVER_IP_ENV, "127.0.0.1".to_string())
.env(dioxus_cli_config::SERVER_IP_ENV, "127.0.0.1")
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::piped())
.kill_on_drop(true)
+1 -1
View File
@@ -271,7 +271,7 @@ struct FmtLogWriter {}
impl Write for FmtLogWriter {
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
if !TUI_ENABLED.load(Ordering::SeqCst) {
std::io::stdout().write(buf)?;
return std::io::stdout().write(buf);
}
Ok(buf.len())