Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelleyrtp committed Jan 18, 2025
1 parent 974caf0 commit 57421c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
11 changes: 1 addition & 10 deletions packages/cli/src/config/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use clap::Parser;
use std::net::{IpAddr, Ipv4Addr, SocketAddr, SocketAddrV4};

/// The arguments for the address the server will run on
#[derive(Clone, Debug, Parser)]
#[derive(Clone, Debug, Default, Parser)]
pub(crate) struct AddressArguments {
/// The port the server will run on
#[clap(long)]
Expand All @@ -14,12 +14,3 @@ pub(crate) struct AddressArguments {
#[clap(long)]
pub(crate) addr: Option<std::net::IpAddr>,
}

impl Default for AddressArguments {
fn default() -> Self {
Self {
port: None,
addr: None,
}
}
}
2 changes: 1 addition & 1 deletion packages/cli/src/serve/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ impl AppHandle {

#[allow(unused)]
async fn codesign_ios(&self) -> Result<()> {
const CODESIGN_ERROR: &'static str = r#"This is likely because you haven't
const CODESIGN_ERROR: &str = r#"This is likely because you haven't
- Created a provisioning profile before
- Accepted the Apple Developer Program License Agreement
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/serve/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl WebServer {

// Use 0.0.0.0 as the default address if none is specified - this will let us expose the
// devserver to the network (for other devices like phones/embedded)
let devserver_bind_ip = args.address.addr.unwrap_or_else(|| SELF_IP);
let devserver_bind_ip = args.address.addr.unwrap_or(SELF_IP);

// If the user specified a port, use that, otherwise use any available port, preferring 8080
let devserver_port = args
Expand Down

0 comments on commit 57421c5

Please sign in to comment.