diff options
| author | Teddy Wing | 2018-10-27 16:39:20 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-10-27 16:39:20 +0200 |
| commit | 0c8184d6346d1738af8b5eae0214ad9700a9a79f (patch) | |
| tree | 0d90f3927aeafc0145d16f137c0d431c95edc052 /src | |
| parent | 21205a3b1b38aae1643ff00fa87490a96b9b678c (diff) | |
| download | dome-key-map-0c8184d6346d1738af8b5eae0214ad9700a9a79f.tar.bz2 | |
c_parse_args(): Remove unused `config` variable
Correct this warning:
warning: unused variable: `config`
--> src/cocoa_bridge.rs:215:9
|
215 | let config = config::parse_args(&args, config);
| ^^^^^^ help: consider using `_config` instead
|
= note: #[warn(unused_variables)] on by default
Finished dev [unoptimized + debuginfo] target(s) in 18.97s
The `config::parse_args()` function will modify the pointer that we
return from here, so we don't need to use its return value.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cocoa_bridge.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cocoa_bridge.rs b/src/cocoa_bridge.rs index 079e3ad..ae374fe 100644 --- a/src/cocoa_bridge.rs +++ b/src/cocoa_bridge.rs @@ -212,7 +212,7 @@ pub extern "C" fn c_parse_args( &mut *config_ptr }; - let config = config::parse_args(&args, config); + config::parse_args(&args, config); config_ptr } |
