fingers

Finger client library in Rust
Log | Files | Refs | README | LICENSE

commit 1a01a43d9f9e239a61832652d09105073c394e6f
parent 52d39e37deb9f407eef97e597e46791df64bd8a0
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Wed,  1 Dec 2021 21:47:30 -0800

Cleanup

Diffstat:
MREADME | 2++
Msrc/lib.rs | 4+---
Msrc/main.rs | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README b/README @@ -5,6 +5,8 @@ finger client library 0 dependencies outside stdlib +not production ready for your finger-based startup. needs timeouts, etc + WIP JOIN THE FINGER REVIVAL! diff --git a/src/lib.rs b/src/lib.rs @@ -6,10 +6,7 @@ use std::str; /// Be mature. /// /// Inspired by Elif Batuman's "The Idiot" -/// From the draft spec: /// https://datatracker.ietf.org/doc/html/draft-ietf-uri-url-finger-02 -/// Returns username, host -use std::time::Duration; #[derive(Debug)] pub enum Error { @@ -39,6 +36,7 @@ pub struct Request { // max_response_len: Option<u64>, } +/// From the draft spec: /// https://datatracker.ietf.org/doc/html/draft-ietf-uri-url-finger-02 pub fn from_url(url: &str) -> Result<Request, Error> { if url.starts_with("finger://") { diff --git a/src/main.rs b/src/main.rs @@ -1,5 +1,5 @@ use std::process; -use std::{env, io, str}; +use std::{env, str}; fn main() -> Result<(), fingers::Error> { let args: Vec<String> = env::args().collect();