Skip to content

Commit 2fb9bf8

Browse files
committed
refactor: update documentation attributes and improve copyright comments in multiple files
1 parent 467c327 commit 2fb9bf8

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

phper-test/src/context.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ impl Context {
8282
ContextCommand { cmd, args }
8383
}
8484

85-
#[cfg_attr(docsrs, doc(cfg(feature = "fpm")))]
8685
pub fn find_php_fpm(&self) -> Option<String> {
8786
use std::ffi::OsStr;
8887

phper-test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#![warn(rust_2018_idioms, missing_docs)]
1212
#![warn(clippy::dbg_macro, clippy::print_stdout)]
13-
#![cfg_attr(docsrs, feature(doc_cfg))]
13+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
1414
#![doc = include_str!("../README.md")]
1515

1616
pub mod cli;

phper/src/alloc.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
// Copyright (c) 2025 PHPER Framework Team
2+
// PHPER is licensed under Mulan PSL v2.
3+
// You can use this software according to the terms and conditions of the Mulan
4+
// PSL v2. You may obtain a copy of Mulan PSL v2 at:
5+
// http://license.coscl.org.cn/MulanPSL2
6+
// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
7+
// KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
8+
// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
9+
// See the Mulan PSL v2 for more details.
10+
111
//! Memory allocation utilities and boxed types for PHP values.
212
313
pub use phper_alloc::{RefClone, ToRefOwned};

0 commit comments

Comments
 (0)