Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.0.3 #30

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

v0.0.3 #30

wants to merge 25 commits into from

Conversation

FL03
Copy link
Owner

@FL03 FL03 commented Aug 13, 2024

No description provided.

Signed-off-by: Joe McCain III <[email protected]>
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Signed-off-by: Joe McCain III <[email protected]>
FL03 added 4 commits August 14, 2024 08:16
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>

fn from_str(s: &str) -> Result<Self, Self::Err> {
if let Ok(flat) = s.parse::<FlatSymbol>() {
return Ok(Self::Flat(flat));

Check warning

Code scanning / clippy

unneeded return statement Warning

unneeded return statement
FL03 added 5 commits August 15, 2024 14:12
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
@FL03 FL03 mentioned this pull request Aug 22, 2024
2 tasks
@FL03 FL03 linked an issue Aug 22, 2024 that may be closed by this pull request
FL03 added 8 commits August 22, 2024 12:59
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Comment on lines +140 to +146
pub fn to_string(&self) -> String {
match self {
Pitches::Flat(note) => format!("{note}♭"),
Pitches::Sharp(note) => format!("{note}#"),
Pitches::Natural(note) => format!("{note}"),
}
}

Check failure

Code scanning / clippy

type pitch::class::Pitches implements inherent method to_string(&self) -> String which shadows the implementation of Display Error

type pitch::class::Pitches implements inherent method to\_string(&self) -> String which shadows the implementation of Display
Comment on lines +119 to +138
mod pitch {
use super::Natural;
use core::marker::PhantomData;

// pub type D<K = Natural, T = i8> = PitchClass<2, K>;

// pub type E<K = Natural, T = i8> = PitchClass<4, K>;

// pub type F<K = Natural, T = i8> = PitchClass<5, K>;

// pub type G<K = Natural, T = i8> = PitchClass<7, K>;

// pub type A<K = Natural, T = i8> = PitchClass<9, K>;

// pub type B<K = Natural, T = i8> = PitchClass<11, K>;

pub struct PitchClass<const N: usize, K = Natural> {
_kind: PhantomData<K>,
}
}

Check warning

Code scanning / clippy

module has the same name as its containing module Warning

module has the same name as its containing module
FL03 added 5 commits January 30, 2025 16:40
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Signed-off-by: Joe McCain III <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interval
1 participant