fix: clippy
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user