Skip to content

Commit

Permalink
Fix dev-dependencie in Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
d0rianb committed Mar 12, 2024
1 parent d3a3608 commit 250b65d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ exclude = ["*.rtf", ".idea"]
lto = true
opt-level = 3

[dev-dependencies]
derivative = "2.2.0"

[dependencies]
derivative = "2.2.0"

3 changes: 2 additions & 1 deletion examples/load_file.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
extern crate rtf_parser;
use rtf_parser::{lexer::Lexer, parser::Parser};
use rtf_parser::lexer::Lexer;
use rtf_parser::parser::Parser;

fn main() {
let rtf_text = include_str!("../resources/tests/test-file.rtf");
Expand Down
5 changes: 3 additions & 2 deletions src/parser.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::collections::HashMap;
use std::{fmt, mem};

use derivative::Derivative;

use crate::document::RtfDocument;
Expand All @@ -24,11 +25,11 @@ pub struct StyleBlock {
pub text: String,
}

#[derive(Debug, Clone, PartialEq, Derivative)]
#[derive(Derivative, Debug, Clone, PartialEq)]
#[derivative(Default)]
pub struct Painter {
pub font_ref: FontRef,
#[derivative(Default(value="12"))]
#[derivative(Default(value = "12"))]
pub font_size: u16,
pub bold: bool,
pub italic: bool,
Expand Down

0 comments on commit 250b65d

Please sign in to comment.