chore: clippy warning fixes and formatting
This commit is contained in:
parent
d14558ce45
commit
5502f21605
6 changed files with 23 additions and 41 deletions
|
|
@ -45,7 +45,7 @@ pub struct GeoIpService {
|
|||
|
||||
impl GeoIpService {
|
||||
pub fn new(config: Config) -> Result<Self, Box<dyn std::error::Error>> {
|
||||
let path = config.geo_files.get(0).unwrap();
|
||||
let path = config.geo_files.first().unwrap();
|
||||
let reader = Reader::open_readfile(path)?;
|
||||
Ok(Self { reader })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue