mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
phrasing (#401)
This commit is contained in:
parent
f466e2a521
commit
af1081e878
|
@ -8,7 +8,6 @@ MAJOR, MINOR, _, _, _ = sys.version_info
|
||||||
|
|
||||||
if MAJOR >= 3:
|
if MAJOR >= 3:
|
||||||
import configparser
|
import configparser
|
||||||
# Absolutely fuck you python3
|
|
||||||
from functools import reduce
|
from functools import reduce
|
||||||
else:
|
else:
|
||||||
import ConfigParser as configparser
|
import ConfigParser as configparser
|
||||||
|
|
|
@ -691,7 +691,7 @@ impl<'a> BackendTransaction for BackendReadTransaction<'a> {
|
||||||
|
|
||||||
#[allow(clippy::mut_from_ref)]
|
#[allow(clippy::mut_from_ref)]
|
||||||
fn get_idlayer(&self) -> &mut IdlArcSqliteReadTransaction<'a> {
|
fn get_idlayer(&self) -> &mut IdlArcSqliteReadTransaction<'a> {
|
||||||
// OKAY here be the cursed bullshit. We know that in our application
|
// OKAY here be the cursed thing. We know that in our application
|
||||||
// that during a transaction, that we are the only holder of the
|
// that during a transaction, that we are the only holder of the
|
||||||
// idlayer, so we KNOW it can be mut, and we know every thing it
|
// idlayer, so we KNOW it can be mut, and we know every thing it
|
||||||
// returns is a copy anyway. But if we permeate that mut up, it prevents
|
// returns is a copy anyway. But if we permeate that mut up, it prevents
|
||||||
|
|
|
@ -120,7 +120,7 @@ pub const _STR_UUID_SCHEMA_ATTR_ACCOUNT_EXPIRE: &str = "00000000-0000-0000-0000-
|
||||||
pub const _STR_UUID_SCHEMA_ATTR_ACCOUNT_VALID_FROM: &str = "00000000-0000-0000-0000-ffff00000073";
|
pub const _STR_UUID_SCHEMA_ATTR_ACCOUNT_VALID_FROM: &str = "00000000-0000-0000-0000-ffff00000073";
|
||||||
|
|
||||||
// System and domain infos
|
// System and domain infos
|
||||||
// I'd like to strongly criticise william of the past for fucking up these allocations.
|
// I'd like to strongly criticise william of the past for making poor choices about these allocations.
|
||||||
pub const STR_UUID_SYSTEM_INFO: &str = "00000000-0000-0000-0000-ffffff000001";
|
pub const STR_UUID_SYSTEM_INFO: &str = "00000000-0000-0000-0000-ffffff000001";
|
||||||
pub const STR_UUID_DOMAIN_INFO: &str = "00000000-0000-0000-0000-ffffff000025";
|
pub const STR_UUID_DOMAIN_INFO: &str = "00000000-0000-0000-0000-ffffff000025";
|
||||||
// DO NOT allocate here, allocate below.
|
// DO NOT allocate here, allocate below.
|
||||||
|
|
|
@ -1574,7 +1574,7 @@ mod tests {
|
||||||
&anon_init,
|
&anon_init,
|
||||||
Duration::from_secs(TEST_CURRENT_TIME),
|
Duration::from_secs(TEST_CURRENT_TIME),
|
||||||
));
|
));
|
||||||
/* Some weird lifetime shit happens here ... */
|
/* Some weird lifetime things happen here ... */
|
||||||
|
|
||||||
let sid = match r1 {
|
let sid = match r1 {
|
||||||
Ok(ar) => {
|
Ok(ar) => {
|
||||||
|
|
Loading…
Reference in a new issue