From f48378ec16af1035af32ed16592099104a552d90 Mon Sep 17 00:00:00 2001 From: Dmitry Gavrovsky Date: Sat, 11 Dec 2021 20:23:11 +0200 Subject: fix(example): Example wasn't compling + lib fixes (#19) * get page + query database bugfixes * fixed wrong error type * clap integration fix * comments cleaning * source formatting using cargo format --- examples/todo/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/todo/main.rs') diff --git a/examples/todo/main.rs b/examples/todo/main.rs index 3a01af3..0832f68 100644 --- a/examples/todo/main.rs +++ b/examples/todo/main.rs @@ -1,20 +1,20 @@ mod commands; use anyhow::{Context, Result}; -use clap::Clap; +use clap::Parser; use notion::ids::DatabaseId; use notion::NotionApi; use serde::{Deserialize, Serialize}; // From -#[derive(Clap)] +#[derive(Parser, Debug)] #[clap(version = "1.0", author = "Jake Swenson")] struct Opts { #[clap(subcommand)] command: SubCommand, } -#[derive(Clap)] +#[derive(Parser, Debug)] enum SubCommand { /// Configure what database this notion-todo example uses Config, -- cgit v1.2.3 tion value='ciro/fetch-fix-with-lock'>ciro/fetch-fix-with-lock Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines