We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c22cc7b commit 3c414b5Copy full SHA for 3c414b5
crates/cargo-test-macro/src/lib.rs
@@ -187,7 +187,7 @@ fn to_token_stream(code: &str) -> TokenStream {
187
188
static mut VERSION: (u32, bool) = (0, false);
189
190
-fn version() -> &'static (u32, bool) {
+fn version() -> (u32, bool) {
191
static INIT: Once = Once::new();
192
INIT.call_once(|| {
193
let output = Command::new("rustc")
@@ -201,7 +201,7 @@ fn version() -> &'static (u32, bool) {
201
let minor = vers.split('.').skip(1).next().unwrap().parse().unwrap();
202
unsafe { VERSION = (minor, is_nightly) }
203
});
204
- unsafe { &VERSION }
+ unsafe { VERSION }
205
}
206
207
fn has_command(command: &str) -> bool {
0 commit comments