Skip to content

Commit

Permalink
fix duplicated statement (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahl authored Jan 6, 2024
1 parent d1e9cbd commit 2c9a432
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions cli/src/generated_cli.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// The contents of this file are generated; do not modify them.

use oxide::*;

use oxide::*;
pub struct Cli<T: CliOverride = ()> {
client: Client,
Expand Down
2 changes: 1 addition & 1 deletion xtask/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fn generate(
print!("generating cli ... ");
std::io::stdout().flush().unwrap();
let code = generator.cli(&spec, "oxide").unwrap().to_string();
let contents = format_code(format!("{}\n\n{}", "use oxide::*;", code));
let contents = format_code(code);
loc += contents.matches('\n').count();

let mut out_path = root_path;
Expand Down

0 comments on commit 2c9a432

Please sign in to comment.