Clippy lints

sloane
Jul 15, 2022, 2:37 AM
FP2VKKZMM2GSTTK5RZTCGAIIBTBCQ2OILALLYKT4PDYWQYGUCFEQC

Dependencies

  • [2] JFL253ZZ Actually include source files, whoops!
  • [3] JBZGFYVO Add nom parsers for main types
  • [4] BOFUYB6I Add documentation and implement some feedback from Discord (https://discord.com/channels/273534239310479360/354038657075904544/796256815024701480)
  • [5] 5II6T7YE Add gemini library
  • [6] LSYI2TXC Housekeeping, add RequestType

Change contents

  • replacement in sputnik/src/main.rs at line 132
    [2.3348][2.3348:3379]()
    Ok(match header.status() {
    [2.3348]
    [2.3379]
    match header.status() {
  • replacement in sputnik/src/main.rs at line 171
    [2.4604][2.4604:4611]()
    })
    [2.4604]
    [2.4611]
    };
    Ok(())
  • replacement in gemini/src/status.rs at line 195
    [4.2755][4.10340:10426]()
    [b1, b2] if &b'0' <= b1 && b1 <= &b'9' && &b'0' <= b2 && b2 <= &b'9' => {
    [4.2755]
    [4.10426]
    [b1, b2] if (&b'0'..=&b'9').contains(&b1) && &b'0' <= b2 && b2 <= &b'9' => {
  • replacement in gemini/src/response.rs at line 85
    [4.12445][4.12445:12491]()
    self.body.as_ref().map(Vec::as_slice)
    [4.12445]
    [3.587]
    self.body.as_deref()
  • replacement in gemini/src/request.rs at line 139
    [4.7700][4.7700:7744]()
    if let None = self.url.port() {
    [4.7700]
    [4.7744]
    if self.url.port().is_none() {