fitnesstrax-lib 0.1.0

Library for managing fitness time series data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate chrono;
extern crate chrono_tz;
extern crate serde;

use std::fs;
use std::path;

pub struct CleanupFile(pub path::PathBuf);

impl Drop for CleanupFile {
    fn drop(&mut self) {
        fs::remove_file(&self.0).expect("file remove should succeed");
    }
}