mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-23 21:31:14 -03:00
Make ConfigPaths store as PathBuf
- These are paths, we can just store them raw.
This commit is contained in:
committed by
Fabian Boehm
parent
55302629cd
commit
360ba46660
10
fish-rust/src/env/var.rs
vendored
10
fish-rust/src/env/var.rs
vendored
@@ -5,6 +5,7 @@
|
||||
use lazy_static::lazy_static;
|
||||
use libc::c_int;
|
||||
use std::collections::HashMap;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
|
||||
/// The character used to delimit path and non-path variables in exporting and in string expansion.
|
||||
@@ -77,11 +78,12 @@ fn default() -> Self {
|
||||
|
||||
/// A struct of configuration directories, determined in main() that fish will optionally pass to
|
||||
/// env_init.
|
||||
#[derive(Default)]
|
||||
pub struct ConfigPaths {
|
||||
pub data: WString, // e.g., /usr/local/share
|
||||
pub sysconf: WString, // e.g., /usr/local/etc
|
||||
pub doc: WString, // e.g., /usr/local/share/doc/fish
|
||||
pub bin: WString, // e.g., /usr/local/bin
|
||||
pub data: PathBuf, // e.g., /usr/local/share
|
||||
pub sysconf: PathBuf, // e.g., /usr/local/etc
|
||||
pub doc: PathBuf, // e.g., /usr/local/share/doc/fish
|
||||
pub bin: PathBuf, // e.g., /usr/local/bin
|
||||
}
|
||||
|
||||
/// A collection of status and pipestatus.
|
||||
|
||||
Reference in New Issue
Block a user