From 2fe1c9c9fa10a1bdbfbf501f3423b29f68db67c5 Mon Sep 17 00:00:00 2001 From: Yuuki Toriyama Date: Fri, 12 Jan 2024 19:15:38 +0900 Subject: [PATCH 1/2] =?UTF-8?q?update:=20API=E5=A4=B1=E6=95=97=E6=99=82?= =?UTF-8?q?=E3=81=AE=E3=83=86=E3=82=B9=E3=83=88=E3=82=B3=E3=83=BC=E3=83=89?= =?UTF-8?q?:=20=E9=9D=9E=E5=90=8C=E6=9C=9F=E7=89=88=E3=81=AE=E3=82=B5?= =?UTF-8?q?=E3=83=B3=E3=83=97=E3=83=AB=E3=82=B3=E3=83=BC=E3=83=89=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 729d6e44..cb98b8ae 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,12 @@ cargo add japanese-address-parser ### Async Api ```rust -use japanese_address_parser::api::client::ApiImpl; +use japanese_address_parser::api::{Api, ApiImpl}; use japanese_address_parser::parser::parse; #[tokio::main] async fn main() { - let async_api = ApiImpl {}; + let async_api = ApiImpl::new(); let parse_result = parse(async_api, "東京都千代田区丸の内1-1-1").await; println!("{:?}", parse_result); } From b4997239a30e1cce4e1dd972cdaf25a322c2651b Mon Sep 17 00:00:00 2001 From: Yuuki Toriyama Date: Fri, 12 Jan 2024 19:15:58 +0900 Subject: [PATCH 2/2] =?UTF-8?q?update:=20API=E5=A4=B1=E6=95=97=E6=99=82?= =?UTF-8?q?=E3=81=AE=E3=83=86=E3=82=B9=E3=83=88=E3=82=B3=E3=83=BC=E3=83=89?= =?UTF-8?q?:=20=E5=90=8C=E6=9C=9F=E7=89=88=E3=81=AE=E3=82=B5=E3=83=B3?= =?UTF-8?q?=E3=83=97=E3=83=AB=E3=82=B3=E3=83=BC=E3=83=89=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cb98b8ae..e2d48924 100644 --- a/README.md +++ b/README.md @@ -32,11 +32,11 @@ async fn main() { ### Blocking Api ```rust -use japanese_address_parser::api::blocking::Client; +use japanese_address_parser::api::{BlockingApi, BlockingApiImpl}; use japanese_address_parser::parser::parse_blocking; fn main() { - let blocking_api = Client {}; + let blocking_api = BlockingApiImpl::new(); let parse_result = parse_blocking(blocking_api, "東京都千代田区丸の内1-1-1"); println!("{:?}", parse_result); }