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 {
/// `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>>(
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 {