mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-21 03:18:47 +03:00
A set of small fixes (#16849)
* Linux Clippy lints fixed * Zed local tasks are now simpler to rerun * Zed's `release-fast` build profile keeps the debug info so it's possible to properly debug things without altering the sources Release Notes: - N/A
This commit is contained in:
parent
1a2a538366
commit
55dda0e6af
@ -2,11 +2,15 @@
|
|||||||
{
|
{
|
||||||
"label": "clippy",
|
"label": "clippy",
|
||||||
"command": "./script/clippy",
|
"command": "./script/clippy",
|
||||||
"args": []
|
"args": [],
|
||||||
|
"allow_concurrent_runs": true,
|
||||||
|
"use_new_terminal": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "cargo run --profile release-fast",
|
"label": "cargo run --profile release-fast",
|
||||||
"command": "cargo",
|
"command": "cargo",
|
||||||
"args": ["run", "--profile", "release-fast"]
|
"args": ["run", "--profile", "release-fast"],
|
||||||
|
"allow_concurrent_runs": true,
|
||||||
|
"use_new_terminal": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -545,6 +545,7 @@ zed = { codegen-units = 16 }
|
|||||||
|
|
||||||
[profile.release-fast]
|
[profile.release-fast]
|
||||||
inherits = "release"
|
inherits = "release"
|
||||||
|
debug = "full"
|
||||||
lto = false
|
lto = false
|
||||||
codegen-units = 16
|
codegen-units = 16
|
||||||
|
|
||||||
|
@ -512,10 +512,6 @@ mod custom_path_matcher {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn sources(&self) -> &[String] {
|
|
||||||
&self.sources
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn is_match<P: AsRef<Path>>(&self, other: P) -> bool {
|
pub fn is_match<P: AsRef<Path>>(&self, other: P) -> bool {
|
||||||
let other_path = other.as_ref();
|
let other_path = other.as_ref();
|
||||||
self.sources
|
self.sources
|
||||||
|
@ -774,6 +774,7 @@ impl BladeRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Required to compile on macOS, but not currently supported.
|
/// Required to compile on macOS, but not currently supported.
|
||||||
|
#[cfg_attr(any(target_os = "linux", target_os = "windows"), allow(dead_code))]
|
||||||
pub fn fps(&self) -> f32 {
|
pub fn fps(&self) -> f32 {
|
||||||
0.0
|
0.0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user