mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
a few clippy fixes
This commit is contained in:
parent
e52d47a3b8
commit
35de195c41
5 changed files with 9 additions and 5 deletions
|
@ -113,6 +113,10 @@ impl CfgDiff {
|
|||
pub fn len(&self) -> usize {
|
||||
self.enable.len() + self.disable.len()
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.len() == 0
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for CfgDiff {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue