Skip to content

Commit

Permalink
send errors & services to -types crate
Browse files Browse the repository at this point in the history
Summary: move thrift generated 'errors.rs' & 'services.rs' files into -types crates

Reviewed By: zertosh

Differential Revision: D48521765

fbshipit-source-id: 3499edb8be67d2f7c6817d3a65ab2b7bbdf56b7a
  • Loading branch information
Shayne Fletcher authored and facebook-github-bot committed Nov 30, 2023
1 parent d4f5083 commit fef18f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shed/thrift_compiler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ impl Config {

// These files are not of interest here.
fs::remove_file(out.join("consts.rs"))?;
fs::remove_file(out.join("errors.rs"))?;
fs::remove_file(out.join("services.rs"))?;
fs::remove_file(out.join("types.rs"))?;

// 'lib.rs' together with the remaining files have the
Expand All @@ -200,8 +202,6 @@ impl Config {

// These files are not of interest here (for now).
fs::remove_file(out.join("lib.rs"))?;
fs::remove_file(out.join("errors.rs"))?;
fs::remove_file(out.join("services.rs"))?;
fs::remove_file(out.join("dependencies.rs"))?;
fs::remove_file(out.join("client.rs"))?;
fs::remove_file(out.join("server.rs"))?;
Expand All @@ -225,6 +225,8 @@ impl Config {

// These files are not of interest here.
fs::remove_file(submod.join("consts.rs"))?;
fs::remove_file(submod.join("errors.rs"))?;
fs::remove_file(submod.join("services.rs"))?;
fs::remove_file(submod.join("types.rs"))?;

// 'lib.rs' (together with the remaining files) has the
Expand All @@ -243,8 +245,6 @@ impl Config {

// These files are not of interest here.
fs::remove_file(submod.join("lib.rs"))?;
fs::remove_file(submod.join("errors.rs"))?;
fs::remove_file(submod.join("services.rs"))?;
fs::remove_file(submod.join("dependencies.rs"))?;
fs::remove_file(submod.join("client.rs"))?;
fs::remove_file(submod.join("server.rs"))?;
Expand Down

0 comments on commit fef18f0

Please sign in to comment.