Skip to content

Commit

Permalink
Clippy overrides for things required by traits
Browse files Browse the repository at this point in the history
  • Loading branch information
Cypher1 committed Feb 19, 2024
1 parent d35c4ad commit 3bebca3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions takolib/src/codegen/backend/llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ impl<'ctx> Backend<'ctx> for Llvm<'ctx> {
reloc: RelocMode::Default,
model: CodeModel::Default,
opt: OptimizationLevel::Default,
#[allow(clippy::ptr_arg)]
target_triple: Arc::new(TargetMachine::get_default_triple()),
target_machine: None,
};
Expand Down
1 change: 0 additions & 1 deletion takolib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ pub fn ensure_initialized() {
use std::fs::OpenOptions;
build_logger(|env| {
let log_file = OpenOptions::new()
.write(true)
.append(true)
.create(true)
.open(".tako.log")
Expand Down
1 change: 1 addition & 0 deletions takolib/src/primitives/typed_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ impl<T, Idx: std::fmt::Debug + std::convert::TryInto<usize>, Container: IndexMut
impl<T, Idx: std::fmt::Debug + std::convert::TryInto<usize> + std::convert::TryFrom<usize>>
TypedIndex<T, Idx, Vec<T>>
{
#[allow(clippy::ptr_arg)]
pub fn next(container: &Vec<T>) -> Result<Self, <Idx as std::convert::TryFrom<usize>>::Error> {
Ok(Self::from_raw(Idx::try_from(container.len())?))
}
Expand Down

0 comments on commit 3bebca3

Please sign in to comment.