proxmox-backup/src
Wolfgang Bumiller ad8a98f7e4 parse_arguments: work with utf8 bytes and reduce indentation
We are only caring about '=' and '-' which are single-byte
codepoints, so there's no reason not to work on a byte
slice.

Also, some indentation reduction:

Transform
    if (a) {
        ...
        return A;
    }
    return B;
into
    if (!a)
        return B;
    return A;

and
    if (a)
        if (b)
            foo()
into
    if (a && b)
        return;

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-12-28 13:47:29 +01:00
..
api more cleanups 2018-12-06 10:41:57 +01:00
api3 move lookup_datastore() to backup/datastore.rs 2018-12-22 17:37:25 +01:00
backup backup-client: allow to specify directories (prepare for catar backup) 2018-12-27 10:11:11 +01:00
bin catar/encoder.rs: first try 2018-12-27 13:15:47 +01:00
catar src/catar/encoder.rs: write filenames 2018-12-28 11:48:47 +01:00
cli avoid compiler warnings 2018-12-16 13:57:59 +01:00
config avoid compiler warnings 2018-12-16 13:57:59 +01:00
server simplify formatter code 2018-12-05 18:22:56 +01:00
storage fix compiler warnings, add storage/config.rs 2018-11-30 11:15:26 +01:00
tools timer: setup_timeout_handler cannot fail 2018-12-27 10:36:28 +01:00
api3.rs src/api3/datastore.rs: new file 2018-12-21 13:38:41 +01:00
getopts.rs parse_arguments: work with utf8 bytes and reduce indentation 2018-12-28 13:47:29 +01:00
lib.rs catar/encoder.rs: first try 2018-12-27 13:15:47 +01:00
section_config.rs section_config.rs: remove debug output 2018-12-12 12:19:26 +01:00
static_map.rs static_map: remove starnge type borrow 2018-11-01 13:45:10 +01:00
tools.rs make map_struct functions public 2018-12-28 08:04:46 +01:00