tree wide: typo fixes through codespell
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
917f5f73af
commit
be8f24ff5d
@ -21,7 +21,7 @@ struct DummyUserInfo;
|
||||
|
||||
impl UserInformation for DummyUserInfo {
|
||||
fn is_superuser(&self, _userid: &str) -> bool {
|
||||
// Always return true here, so we have access to everthing
|
||||
// Always return true here, so we have access to everything
|
||||
true
|
||||
}
|
||||
fn is_group_member(&self, _userid: &str, group: &str) -> bool {
|
||||
|
@ -42,7 +42,7 @@ impl ApiConfig {
|
||||
/// `api_auth` - The Authentication handler
|
||||
///
|
||||
/// `get_index_fn` - callback to generate the root page
|
||||
/// (index). Please note that this fuctions gets a reference to
|
||||
/// (index). Please note that this functions gets a reference to
|
||||
/// the [ApiConfig], so it can use [Handlebars] templates
|
||||
/// ([render_template](Self::render_template) to generate pages.
|
||||
pub fn new<B: Into<PathBuf>>(
|
||||
|
@ -104,7 +104,7 @@ lazy_static::lazy_static! {
|
||||
static ref PSTART: u64 = PidStat::read_from_pid(Pid::from_raw(*PID)).unwrap().starttime;
|
||||
}
|
||||
|
||||
/// Retruns the current process ID (see [libc::getpid])
|
||||
/// Returns the current process ID (see [libc::getpid])
|
||||
///
|
||||
/// The value is cached at startup (so it is invalid after a fork)
|
||||
pub(crate) fn pid() -> i32 {
|
||||
|
Loading…
Reference in New Issue
Block a user