mirror of
https://github.com/codewhale-hq/Codewhale.git
synced 2026-11-11 01:51:34 -10:00
fix(sandbox): restore SandboxManager doc placement (clippy doc-list lint)
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TagtWzJ9CfZrsCYVbkiiMU Entire-Checkpoint: 01M0RBEXMT0FMMJWHJ2ZJE7EQ8
This commit is contained in:
1 parent
58b0c523f5
commit
70d989974f
1 file changed
+5
-5
@@ -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