diff --git a/flake.lock b/flake.lock index 3c8d185..b4fa215 100644 --- a/flake.lock +++ b/flake.lock @@ -1,25 +1,5 @@ { "nodes": { - "nix-darwin": { - "inputs": { - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1733047432, - "narHash": "sha256-fQUKxgxAEHlL5bevRkdsQB7sSpAMhlvxf7Zw0KK8QIg=", - "owner": "LnL7", - "repo": "nix-darwin", - "rev": "e30a3622b606dffc622305b4bbe1cfe37e78fa40", - "type": "github" - }, - "original": { - "owner": "LnL7", - "repo": "nix-darwin", - "type": "github" - } - }, "nixpkgs": { "locked": { "lastModified": 1731386116, @@ -38,7 +18,6 @@ }, "root": { "inputs": { - "nix-darwin": "nix-darwin", "nixpkgs": "nixpkgs" } } diff --git a/src/darwin.rs b/src/darwin.rs index c1a1853..08aba51 100644 --- a/src/darwin.rs +++ b/src/darwin.rs @@ -43,7 +43,7 @@ fn get_hostname(hostname: Option) -> Result { bail!("Failed to get hostname"); } let name = unsafe { CFString::wrap_under_get_rule(ptr) }; - return Ok(name.to_string()); + Ok(name.to_string()) } #[cfg(not(target_os = "macos"))] {