mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
fix clippy errors
This commit is contained in:
parent
b987cb47f4
commit
1b17ff429b
|
@ -239,7 +239,7 @@ pub enum AnyCodeServer {
|
|||
|
||||
pub enum CodeServerOrigin {
|
||||
/// A new code server, that opens the barrier when it exits.
|
||||
New(Child),
|
||||
New(Box<Child>),
|
||||
/// An existing code server with a PID.
|
||||
Existing(u32),
|
||||
}
|
||||
|
@ -687,7 +687,7 @@ where
|
|||
}
|
||||
});
|
||||
|
||||
let origin = CodeServerOrigin::New(child);
|
||||
let origin = CodeServerOrigin::New(Box::new(child));
|
||||
(origin, listen_rx)
|
||||
}
|
||||
|
||||
|
|
|
@ -39,13 +39,11 @@ fn should_skip_first_segment(file: &fs::File) -> Result<bool, WrappedError> {
|
|||
};
|
||||
|
||||
let mut had_multiple = false;
|
||||
for file in entries {
|
||||
if let Ok(file) = file {
|
||||
had_multiple = true;
|
||||
if let Ok(name) = file.path() {
|
||||
if name.iter().next() != Some(&first_name) {
|
||||
return Ok(false);
|
||||
}
|
||||
for file in entries.flatten() {
|
||||
had_multiple = true;
|
||||
if let Ok(name) = file.path() {
|
||||
if name.iter().next() != Some(&first_name) {
|
||||
return Ok(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue