Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chimei-ruiju.org: Clippyの警告を抑制 #491

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/src/domain.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[cfg(feature = "experimental")]
pub mod chimei_ruiju;
pub mod common;
pub mod geolonia;
2 changes: 2 additions & 0 deletions core/src/domain/chimei_ruiju/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pub struct TownMaster {
coordinate: Coordinate,
}

#[allow(dead_code)]
#[derive(Deserialize, Debug)]
pub struct Block {
/// 小字・通称名
Expand All @@ -42,6 +43,7 @@ pub struct Block {
coordinate: Coordinate,
}

#[allow(dead_code)]
#[derive(Deserialize, Debug)]
pub struct Coordinate {
/// 緯度
Expand Down
1 change: 1 addition & 0 deletions core/src/interactor.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#[cfg(feature = "experimental")]
pub mod chimei_ruiju;
2 changes: 2 additions & 0 deletions core/src/interactor/chimei_ruiju.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub(crate) trait ChimeiRuijuInteractor {
city_name: &str,
) -> Result<CityMaster, ApiError>;
/// 町名マスタを取得
#[allow(dead_code)]
async fn get_town_master(
&self,
prefecture: &Prefecture,
Expand Down Expand Up @@ -55,6 +56,7 @@ impl ChimeiRuijuInteractor for ChimeiRuijuInteractorImpl {
CityMasterRepository::get(&self.api_service, prefecture, city_name).await
}

#[allow(dead_code)]
async fn get_town_master(
&self,
prefecture: &Prefecture,
Expand Down
1 change: 1 addition & 0 deletions core/src/repository.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#[cfg(feature = "experimental")]
pub mod chimei_ruiju;
pub mod geolonia;
1 change: 1 addition & 0 deletions core/src/repository/chimei_ruiju/city.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ mod async_tests {

#[cfg(feature = "blocking")]
impl CityMasterRepository {
#[allow(dead_code)]
pub fn get_blocking(
api_service: &ChimeiRuijuApiService,
prefecture: &Prefecture,
Expand Down
1 change: 1 addition & 0 deletions core/src/repository/chimei_ruiju/prefecture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ mod async_tests {

#[cfg(feature = "blocking")]
impl PrefectureMasterRepository {
#[allow(dead_code)]
pub fn get_blocking(
api_service: &ChimeiRuijuApiService,
prefecture: Prefecture,
Expand Down
2 changes: 2 additions & 0 deletions core/src/repository/chimei_ruiju/town.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use jisx0401::Prefecture;
pub struct TownMasterRepository {}

impl TownMasterRepository {
#[allow(dead_code)]
pub async fn get(
api_service: &ChimeiRuijuApiService,
prefecture: &Prefecture,
Expand Down Expand Up @@ -42,6 +43,7 @@ mod async_tests {

#[cfg(feature = "blocking")]
impl TownMasterRepository {
#[allow(dead_code)]
pub fn get_blocking(
api_service: &ChimeiRuijuApiService,
prefecture: &Prefecture,
Expand Down
1 change: 1 addition & 0 deletions core/src/service.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#[cfg(feature = "experimental")]
pub mod chimei_ruiju;
pub mod geolonia;
Loading