Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Feb 22, 2021
1 parent a31b1a5 commit 3765736
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/read_write_ogr_datetime.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use gdal::errors::Result;

#[cfg(feature = "datetime")]
fn run() -> Result<()> {
fn run() -> gdal::errors::Result<()> {
use chrono::Duration;
use gdal::vector::{Defn, Feature, FieldDefn, FieldValue};
use gdal::{Dataset, Driver};
Expand Down Expand Up @@ -60,11 +58,13 @@ fn run() -> Result<()> {
}

#[cfg(not(feature = "datetime"))]
fn run() -> Result<()> {
fn run() {
println!("gdal crate was build without datetime support");
Ok(())
}

fn main() {
#[cfg(feature = "datetime")]
run().unwrap();
#[cfg(not(feature = "datetime"))]
run();
}

0 comments on commit 3765736

Please sign in to comment.