Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ repository = "https://github.com/whitequark/rust-log_buffer"
homepage = "https://github.com/whitequark/rust-log_buffer"
documentation = "https://whitequark.github.io/rust-log_buffer/log_buffer"
description = "A zero-allocation ring buffer for storing text logs"

[features]
const_fn = []
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The feature itself should remain for backwards compatibility, even if it does nothing.

2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
//! ```

#![no_std]
#![cfg_attr(feature = "const_fn", feature(const_fn))]

/// A ring buffer that stores UTF-8 text.
///
Expand All @@ -67,7 +66,6 @@ impl<T: AsRef<[u8]> + AsMut<[u8]>> LogBuffer<T> {
/// The buffer is *not* cleared after creation, and contains whatever is in `storage`.
/// The `clear()` method should be called before use.
/// However, this function can be used in a static initializer.
#[cfg(feature = "const_fn")]
pub const fn uninitialized(storage: T) -> LogBuffer<T> {
LogBuffer { buffer: storage, position: 0 }
}
Expand Down