Skip to content

Commit 88093ae

Browse files
committed
refactor: change ordering of imports
1 parent 42d5cc7 commit 88093ae

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

server/graphman/src/resolvers/deployment_mutation/create.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
use crate::resolvers::context::GraphmanContext;
21
use anyhow::anyhow;
32
use async_graphql::Result;
43
use graph::prelude::SubgraphName;
54
use graph_store_postgres::command_support::catalog;
5+
6+
use crate::resolvers::context::GraphmanContext;
67
use graphman::GraphmanError;
78

89
pub fn run(ctx: &GraphmanContext, name: &String) -> Result<()> {
@@ -15,7 +16,7 @@ pub fn run(ctx: &GraphmanContext, name: &String) -> Result<()> {
1516
return Err(GraphmanError::Store(anyhow!(
1617
"Subgraph name must contain only a-z, A-Z, 0-9, '-' and '_'"
1718
))
18-
.try_into()?)
19+
.into())
1920
}
2021
};
2122

server/graphman/src/resolvers/deployment_mutation/remove.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
use crate::resolvers::context::GraphmanContext;
21
use anyhow::anyhow;
32
use async_graphql::Result;
43
use graph::prelude::{StoreEvent, SubgraphName};
54
use graph_store_postgres::command_support::catalog;
5+
6+
use crate::resolvers::context::GraphmanContext;
67
use graphman::GraphmanError;
78

89
pub fn run(ctx: &GraphmanContext, name: &String) -> Result<()> {
@@ -15,7 +16,7 @@ pub fn run(ctx: &GraphmanContext, name: &String) -> Result<()> {
1516
return Err(GraphmanError::Store(anyhow!(
1617
"Subgraph name must contain only a-z, A-Z, 0-9, '-' and '_'"
1718
))
18-
.try_into()?)
19+
.into())
1920
}
2021
};
2122

0 commit comments

Comments
 (0)