Skip to content

Commit 11ef287

Browse files
committed
[orion]UPDATE: fix based on copilot suggestions
Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>
1 parent f9fa174 commit 11ef287

5 files changed

Lines changed: 22 additions & 22 deletions

File tree

api-model/src/buck2/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl ProjectRelativePath {
2929
}
3030

3131
/// ```
32-
/// use buck2::types::ProjectRelativePath;
32+
/// use api-models::types::ProjectRelativePath;
3333
/// assert_eq!(
3434
/// ProjectRelativePath::new("foo/bar.bzl").extension(),
3535
/// Some("bzl")

jupiter/callisto/src/build_events.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl ActiveModelBehavior for ActiveModel {}
3939

4040
#[allow(dead_code)]
4141
trait BuildModel {
42-
/// Crete a new build event ActiveModel for database insertion
42+
/// Create a new build event ActiveModel for database insertion
4343
fn create_build_event(
4444
build_event_id: Uuid,
4545
task_id: Uuid,

orion-server/src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@ pub async fn task_handler(
471471
let result: OrionBuildResult = handle_immediate_task_dispatch(
472472
state.clone(),
473473
task_id,
474-
&req.cl_link,
475474
&req.repo,
475+
&req.cl_link,
476476
req.changes.clone(),
477477
None,
478478
)

orion/src/repo/sapling/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// /*
2-
// * Copyright (c) Meta Platforms, Inc. and affiliates.
3-
// *
4-
// * This source code is dual-licensed under either the MIT license found in the
5-
// * LICENSE-MIT file in the root directory of this source tree or the Apache
6-
// * License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7-
// * of this source tree. You may select, at your option, one of the
8-
// * above-listed licenses.
9-
// */
10-
// pub mod status;
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is dual-licensed under either the MIT license found in the
5+
* LICENSE-MIT file in the root directory of this source tree or the Apache
6+
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7+
* of this source tree. You may select, at your option, one of the
8+
* above-listed licenses.
9+
*/
10+
pub mod status;

orion/src/repo/sapling/status.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// /*
2-
// * Copyright (c) Meta Platforms, Inc. and affiliates.
3-
// *
4-
// * This source code is dual-licensed under either the MIT license found in the
5-
// * LICENSE-MIT file in the root directory of this source tree or the Apache
6-
// * License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7-
// * of this source tree. You may select, at your option, one of the
8-
// * above-listed licenses.
9-
// */
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is dual-licensed under either the MIT license found in the
5+
* LICENSE-MIT file in the root directory of this source tree or the Apache
6+
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7+
* of this source tree. You may select, at your option, one of the
8+
* above-listed licenses.
9+
*/
1010

1111
// use std::{fs, path::Path};
1212

0 commit comments

Comments
 (0)