Commit graph

10 commits

Author SHA1 Message Date
Aravinda Vishwanathapura
49b988cdb0
Format fixes (#9)
```
cargo fmt --all -- --check
```

Signed-off-by: Aravinda Vishwanathapura <mail@aravindavk.in>
2020-08-21 12:31:50 +05:30
Kyle Wood
811f7783ab
Allow any generic Path as input to register (#7)
* Allow any generic Path as input to register

Previously only String was allowed, which can be annoying for clients
which already have a PathBuf or Path object. The generic type
AsRef<Path> is the standard for APIs which have file path parameters, as
it works across both owned and un-owned paths. Also, AsRef<Path> allows
Strings and OS specific strings to be used directly as well.

The filename parameter itself is only used for calling File::open(),
which itself also takes in an AsRef<Path> as input.

Signed-off-by: Kyle Wood <https://github.com/DemonWav>
2020-08-21 12:21:41 +05:30
noyez
6f8f9bd75d
Change closure from Fn to FnMut. (#5)
* Using FnMut, so works
* Using FnMut for watch() and reopen_if_log_rotated()
* adding fn to force reopen
* adding actions to closure

Co-authored-by: noyez <brad@bkn.local>
Co-authored-by: noyez <brad@bkn.localdomain>
Co-authored-by: Bradley Noyes <b@noyes.dev>
2020-08-21 12:12:11 +05:30
Aravinda VK
7c288c8d1e
Merge pull request #6 from romibuzi/formatting
Formatting with rustfmt
2018-11-29 17:49:58 +05:30
Romain Ardiet
e83d3b67bb Highlight code blocks inside Readme 2018-11-29 12:07:22 +01:00
Romain Ardiet
ab587c98e4 Apply and configure rustfmt in the project 2018-11-29 12:07:09 +01:00
Aravinda VK
e19805f872 Merge pull request #3 from KenanSulayman/master
Use closures
2016-11-13 11:52:37 +05:30
Kenan Sulayman
c08f460021
Use closures 2016-11-04 02:24:17 +01:00
Aravinda VK
f475dc2746 Added .travis.yml file and Build status
Signed-off-by: Aravinda VK <mail@aravindavk.in>
2016-01-04 16:35:44 +05:30
Aravinda VK
d5d7288938 First working commit
Signed-off-by: Aravinda VK <mail@aravindavk.in>
2016-01-04 16:21:41 +05:30