File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
server/graphman/src/resolvers/deployment_mutation Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- use crate :: resolvers:: context:: GraphmanContext ;
21use anyhow:: anyhow;
32use async_graphql:: Result ;
43use graph:: prelude:: SubgraphName ;
54use graph_store_postgres:: command_support:: catalog;
5+
6+ use crate :: resolvers:: context:: GraphmanContext ;
67use graphman:: GraphmanError ;
78
89pub 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
Original file line number Diff line number Diff line change 1- use crate :: resolvers:: context:: GraphmanContext ;
21use anyhow:: anyhow;
32use async_graphql:: Result ;
43use graph:: prelude:: { StoreEvent , SubgraphName } ;
54use graph_store_postgres:: command_support:: catalog;
5+
6+ use crate :: resolvers:: context:: GraphmanContext ;
67use graphman:: GraphmanError ;
78
89pub 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
You can’t perform that action at this time.
0 commit comments