mirror of
https://github.com/Hmbown/DeepSeek-TUI.git
synced 2026-09-27 11:29:17 +08:00
fix(sandbox): restore SandboxManager doc placement (clippy doc-list lint)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TagtWzJ9CfZrsCYVbkiiMU Entire-Checkpoint: 01M0RBEXMT0FMMJWHJ2ZJE7EQ8
This commit is contained in:
@@ -438,12 +438,8 @@ impl BwrapMountExtensions {
|
||||
}
|
||||
}
|
||||
|
||||
/// The `SandboxManager` is responsible for:
|
||||
/// - Detecting available sandbox technologies
|
||||
/// - Transforming `CommandSpecs` into sandboxed `ExecEnvs`
|
||||
/// - Detecting sandbox denials from command output
|
||||
/// Expand a leading `~` or `~/` to the user's home directory. Paths without
|
||||
/// the prefix — and any path when no home directory is resolvable — pass
|
||||
/// the prefix (and any path when no home directory is resolvable) pass
|
||||
/// through unchanged.
|
||||
fn expand_home_prefix(path: PathBuf) -> PathBuf {
|
||||
let Some(text) = path.to_str() else {
|
||||
@@ -460,6 +456,10 @@ fn expand_home_prefix(path: PathBuf) -> PathBuf {
|
||||
path
|
||||
}
|
||||
|
||||
/// The `SandboxManager` is responsible for:
|
||||
/// - Detecting available sandbox technologies
|
||||
/// - Transforming `CommandSpecs` into sandboxed `ExecEnvs`
|
||||
/// - Detecting sandbox denials from command output
|
||||
#[derive(Debug, Default)]
|
||||
pub struct SandboxManager {
|
||||
/// Cached sandbox availability check.
|
||||
|
||||
Reference in New Issue
Block a user